Added new vue components tested

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-12-03 17:22:05 +01:00
parent c1c9f421e0
commit d88427f816
6 changed files with 480 additions and 4 deletions

View File

@@ -26,9 +26,12 @@
</p>
</div>
<div class="send-comment">
<b-button native-type="submit" type="is-primary">{{
$t("Post a comment")
}}</b-button>
<b-button
native-type="submit"
type="is-primary"
class="comment-button-submit"
>{{ $t("Post a comment") }}</b-button
>
</div>
</div>
</article>
@@ -37,6 +40,9 @@
$t("The organiser has chosen to close comments.")
}}</b-notification>
<transition name="comment-empty-list" mode="out-in">
<p v-if="$apollo.queries.comments.loading" class="loading">
{{ $t("Loading") }}
</p>
<transition-group
name="comment-list"
v-if="comments.length"
@@ -326,7 +332,7 @@ export default class CommentTree extends Vue {
}
get isAbleToComment(): boolean {
if (this.currentActor.id) {
if (this.currentActor && this.currentActor.id) {
return this.areCommentsClosed || this.isEventOrganiser;
}
return false;