feat(front): Add FW button to channelswidget
This commit is contained in:
parent
507d907a28
commit
80993a0444
|
@ -6,6 +6,8 @@ import { clone } from 'lodash-es'
|
||||||
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
|
import { FwButton } from '@funkwhale/ui'
|
||||||
|
|
||||||
import ChannelCard from '~/components/audio/ChannelCard.vue'
|
import ChannelCard from '~/components/audio/ChannelCard.vue'
|
||||||
|
|
||||||
interface Events {
|
interface Events {
|
||||||
|
@ -72,13 +74,14 @@ fetchData()
|
||||||
</div>
|
</div>
|
||||||
<template v-if="nextPage">
|
<template v-if="nextPage">
|
||||||
<div class="ui hidden divider" />
|
<div class="ui hidden divider" />
|
||||||
<button
|
<fw-button
|
||||||
v-if="nextPage"
|
v-if="nextPage"
|
||||||
:class="['ui', 'basic', 'button']"
|
outline
|
||||||
|
color="secondary"
|
||||||
@click="fetchData(nextPage)"
|
@click="fetchData(nextPage)"
|
||||||
>
|
>
|
||||||
{{ $t('components.audio.ChannelsWidget.button.showMore') }}
|
{{ $t('components.audio.ChannelsWidget.button.showMore') }}
|
||||||
</button>
|
</fw-button>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!isLoading && channels.length === 0">
|
<template v-if="!isLoading && channels.length === 0">
|
||||||
<empty-state
|
<empty-state
|
||||||
|
|
Loading…
Reference in New Issue