feat(front): add fw button to empty state
This commit is contained in:
parent
80993a0444
commit
0f00045876
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue