feat(front): add fw button to playlist overview

This commit is contained in:
Ciarán Ainsworth 2023-11-12 21:07:11 +01:00
parent 5f80754b63
commit 2882025c7c
No known key found for this signature in database
1 changed files with 5 additions and 3 deletions

View File

@ -16,6 +16,8 @@ import $ from 'jquery'
import PlaylistCardList from '~/components/playlists/CardList.vue' import PlaylistCardList from '~/components/playlists/CardList.vue'
import Pagination from '~/components/vui/Pagination.vue' import Pagination from '~/components/vui/Pagination.vue'
import { FwButton } from '@funkwhale/ui'
import useSharedLabels from '~/composables/locale/useSharedLabels' import useSharedLabels from '~/composables/locale/useSharedLabels'
import useOrdering from '~/composables/navigation/useOrdering' import useOrdering from '~/composables/navigation/useOrdering'
import useErrorHandler from '~/composables/useErrorHandler' import useErrorHandler from '~/composables/useErrorHandler'
@ -111,12 +113,12 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value]
{{ $t('views.playlists.List.header.browse') }} {{ $t('views.playlists.List.header.browse') }}
</h2> </h2>
<template v-if="$store.state.auth.authenticated"> <template v-if="$store.state.auth.authenticated">
<button <fw-button
class="ui success button" color="primary"
@click="$store.commit('playlists/showModal', true)" @click="$store.commit('playlists/showModal', true)"
> >
{{ $t('views.playlists.List.button.manage') }} {{ $t('views.playlists.List.button.manage') }}
</button> </fw-button>
<div class="ui hidden divider" /> <div class="ui hidden divider" />
</template> </template>
<form <form