feat(front): add fw button to empty state

This commit is contained in:
Ciarán Ainsworth 2023-11-12 20:53:24 +01:00
parent 80993a0444
commit 0f00045876
No known key found for this signature in database
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { FwButton } from '@funkwhale/ui'
interface Events { interface Events {
(e: 'refresh'): void (e: 'refresh'): void
} }
@ -25,13 +28,13 @@ withDefaults(defineProps<Props>(), {
</h4> </h4>
<div class="inline center aligned text"> <div class="inline center aligned text">
<slot /> <slot />
<button <fw-button
v-if="refresh" v-if="refresh"
class="ui button" color="secondary"
@click="emit('refresh')" @click="emit('refresh')"
> >
{{ $t('components.common.EmptyState.button.refresh') }} {{ $t('components.common.EmptyState.button.refresh') }}
</button> </fw-button>
</div> </div>
</div> </div>
</template> </template>