more fixes for popover

This commit is contained in:
Henry Jameson 2025-01-12 22:20:02 +02:00
commit b3ce454203
6 changed files with 36 additions and 11 deletions

View file

@ -39,7 +39,7 @@
</template>
</FALayers><span>{{ $t(button.label(funcArg)) }}</span>
<FAIcon
v-if="button.name === 'bookmark'"
v-if="button.name === 'mute'"
class="chevron-icon"
size="lg"
icon="chevron-right"

View file

@ -138,7 +138,7 @@ const BUTTONS = [{
// =========
// MUTE CONVERSATION, my beloved
// =========
name: 'mute-conversation',
name: 'mute',
icon: 'eye-slash',
label: ({ status }) => status.thread_muted
? 'status.unmute_conversation'

View file

@ -129,6 +129,23 @@
:do-action="doAction"
/>
</template>
<template #content>
<StatusBookmarkFolderMenu v-if="button.name === 'mute'" :status="funcArg.status" />
</template>
</Popover>
<Popover
trigger="hover"
placement="right"
:trigger-attrs="{ class: 'extra-button' }"
v-if="button.name === 'bookmark'"
>
<template #trigger>
<FAIcon
class="chevron-icon"
size="lg"
icon="chevron-right"
/>
</template>
<template #content>
<StatusBookmarkFolderMenu v-if="button.name === 'bookmark'" :status="funcArg.status" />
</template>