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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Popover v-if="!discrete && !iconOnly" v-model:open="isOpen">
|
<Popover
|
||||||
|
v-if="!discrete && !iconOnly && dropdownOnly"
|
||||||
|
v-model:open="isOpen"
|
||||||
|
>
|
||||||
<OptionsButton
|
<OptionsButton
|
||||||
v-if="dropdownOnly"
|
v-if="dropdownOnly"
|
||||||
@click="isOpen = !isOpen"
|
@click="isOpen = !isOpen"
|
||||||
|
@ -230,4 +233,30 @@ const isOpen = ref(false)
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
</template>
|
</template>
|
||||||
</Popover>
|
</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>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue