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:
parent
5ff28cb52c
commit
03a5a83a3b
4 changed files with 49 additions and 2 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,10 @@ const store: Module<State, RootState> = {
|
|||
name: 'Random',
|
||||
description: "Totally random picks, maybe you'll discover new things?"
|
||||
},
|
||||
random_library: {
|
||||
name: 'Random',
|
||||
description: 'Random picks from your library, be surprise by yourself ?'
|
||||
},
|
||||
favorites: {
|
||||
name: 'Favorites',
|
||||
description: 'Play your favorites tunes in a never-ending happiness loop.'
|
||||
|
|
@ -60,6 +64,10 @@ const store: Module<State, RootState> = {
|
|||
name: 'Less listened',
|
||||
description: "Listen to tracks you usually don't. It's time to restore some balance."
|
||||
},
|
||||
'less-listened_library': {
|
||||
name: 'Less listened',
|
||||
description: "Listen to tracks from your library you usually don't. It's time to restore some balance."
|
||||
},
|
||||
'recently-added': {
|
||||
name: 'Recently Added',
|
||||
description: 'Newest content on the network. Get some fresh air.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue