Random and less listened radio filter out un-owned content on library section (#2007)

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2285>
This commit is contained in:
Petitminion 2022-12-16 00:10:58 +01:00 committed by Marge
commit 03a5a83a3b
4 changed files with 49 additions and 2 deletions

View file

@ -129,12 +129,23 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value]
v-if="isAuthenticated && hasFavorites"
:type="'favorites'"
/>
<radio-card :type="'random'" />
<radio-card
v-if="scope === 'all'"
:type="'random'"
/>
<radio-card
v-if="scope === 'me'"
:type="'random_library'"
/>
<radio-card :type="'recently-added'" />
<radio-card
v-if="$store.state.auth.authenticated"
v-if="$store.state.auth.authenticated && scope === 'all'"
:type="'less-listened'"
/>
<radio-card
v-if="$store.state.auth.authenticated && scope === 'me'"
:type="'less-listened_library'"
/>
</div>
</div>