Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
feat(comment): hide comment load button when fetching new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 14, 2022
1 parent 98ad061 commit 42fd2dc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions components/comment/multiviewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
v-if="mayViewArchivedOrRestore"
v-model="existence"
class="comment-existence-filter"/>
<Viewer
v-for="(comment, i) in comments.data"
:key="comment.id"
v-model="comments.data[i]"
class="viewer"
@archive="archiveComment"
@restore="restoreComment"/>
<p v-if="hasNoComments">
There are no comments found.
</p>
<Suspensible :is-loaded="isLoaded">
<Viewer
v-for="(comment, i) in comments.data"
:key="comment.id"
v-model="comments.data[i]"
class="viewer"
@archive="archiveComment"
@restore="restoreComment"/>
<p v-if="hasNoComments">
There are no comments found.
</p>
<div v-if="hasRemainingComments" class="load-others">
<button
class="load-btn btn btn-secondary"
@click="fetchComments">
Load other comments
</button>
</div>
</Suspensible>
<div v-if="hasRemainingComments" class="load-others">
<button
class="load-btn btn btn-secondary"
@click="fetchComments">
Load other comments
</button>
</div>
</div>
</template>

Expand Down

0 comments on commit 42fd2dc

Please sign in to comment.