feat(ui): Non discrete, no-split button only option for playbutton
This commit is contained in:
parent
be492901dc
commit
37710a9ccb
|
@ -111,7 +111,10 @@ const isOpen = ref(false)
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<Popover v-if="!discrete && !iconOnly" v-model:open="isOpen">
|
||||
<Popover
|
||||
v-if="!discrete && !iconOnly && dropdownOnly"
|
||||
v-model:open="isOpen"
|
||||
>
|
||||
<OptionsButton
|
||||
v-if="dropdownOnly"
|
||||
@click="isOpen = !isOpen"
|
||||
|
@ -230,4 +233,30 @@ const isOpen = ref(false)
|
|||
</PopoverItem>
|
||||
</template>
|
||||
</Popover>
|
||||
<Button
|
||||
v-else
|
||||
v-bind="{
|
||||
disabled: !playable,
|
||||
primary: playable,
|
||||
}"
|
||||
:aria-label="labels.replacePlay"
|
||||
:class="[...buttonClasses]"
|
||||
:isloading="isLoading"
|
||||
@click.stop.prevent="replacePlay()"
|
||||
>
|
||||
<i
|
||||
v-if="playing"
|
||||
class="bi bi-pause-fill"
|
||||
/>
|
||||
<i
|
||||
v-else
|
||||
:class="[playIconClass, 'icon']"
|
||||
/>
|
||||
<template v-if="!discrete && !iconOnly">
|
||||
|
||||
<slot>
|
||||
{{ t('components.audio.PlayButton.button.discretePlay') }}
|
||||
</slot>
|
||||
</template>
|
||||
</Button>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue