Don't display "display more" with result type

This commit is contained in:
Chocobozzz 2022-12-28 14:19:30 +01:00
parent 040d86cc8d
commit 36dd81b498
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 4 deletions

View File

@ -54,9 +54,9 @@
<video-result :video="video"></video-result>
</div>
<div class="mb-5 text-center">
<div v-if="!hasResultTypeFilter()" class="mb-5 text-center">
<router-link
v-if="totalVideos > summaryResultsCount.videos"
v-if="!hasResultTypeFilter() && totalVideos > summaryResultsCount.videos"
class="peertube-button peertube-button-link peertube-secondary-button"
:to="{ path: '/search', query: { ...getMoreResultsQuery('videos') } }"
>
@ -80,7 +80,7 @@
<div class="mb-5 text-center">
<router-link
v-if="totalChannels > summaryResultsCount.channels"
v-if="!hasResultTypeFilter() && totalChannels > summaryResultsCount.channels"
class="peertube-button peertube-button-link peertube-secondary-button"
:to="{ path: '/search', query: { ...getMoreResultsQuery('channels') } }"
>
@ -104,7 +104,7 @@
<div class="mb-5 text-center">
<router-link
v-if="totalPlaylists > summaryResultsCount.playlists"
v-if="!hasResultTypeFilter() && totalPlaylists > summaryResultsCount.playlists"
class="peertube-button peertube-button-link peertube-secondary-button"
:to="{ path: '/search', query: { ...getMoreResultsQuery('playlists') } }"
>