2021-02-25 08:56:16 +00:00
|
|
|
<template>
|
|
|
|
<Popover
|
|
|
|
trigger="click"
|
2022-08-01 20:20:27 +00:00
|
|
|
class="QuickViewSettings"
|
2021-02-25 08:56:16 +00:00
|
|
|
:bound-to="{ x: 'container' }"
|
|
|
|
>
|
2022-07-31 09:35:48 +00:00
|
|
|
<template #content>
|
2021-04-07 19:42:34 +00:00
|
|
|
<div class="dropdown-menu">
|
2022-08-04 20:32:06 +00:00
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
|
|
|
@click="conversationDisplay = 'tree'"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox -radio"
|
|
|
|
:class="{ 'menu-checkbox-checked': conversationDisplay === 'tree' }"
|
|
|
|
/><FAIcon icon="folder-tree"/> {{ $t('settings.conversation_display_tree_quick') }}
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
|
|
|
@click="conversationDisplay = 'linear'"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox -radio"
|
|
|
|
:class="{ 'menu-checkbox-checked': conversationDisplay === 'linear' }"
|
|
|
|
/><FAIcon icon="list"/> {{ $t('settings.conversation_display_linear_quick') }}
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
role="separator"
|
|
|
|
class="dropdown-divider"
|
|
|
|
/>
|
2022-02-28 20:07:20 +00:00
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
2022-08-01 20:20:27 +00:00
|
|
|
@click="showUserAvatars = !showUserAvatars"
|
2022-02-28 20:07:20 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2022-08-01 20:20:27 +00:00
|
|
|
:class="{ 'menu-checkbox-checked': showUserAvatars }"
|
|
|
|
/>{{ $t('settings.mention_link_show_avatar_quick') }}
|
2022-02-28 20:07:20 +00:00
|
|
|
</button>
|
2021-02-25 09:01:11 +00:00
|
|
|
<button
|
2022-08-01 20:20:27 +00:00
|
|
|
v-if="!conversation"
|
2021-02-25 09:01:11 +00:00
|
|
|
class="button-default dropdown-item"
|
2022-08-01 20:20:27 +00:00
|
|
|
@click="autoUpdate = !autoUpdate"
|
2021-02-25 09:01:11 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2022-08-01 20:20:27 +00:00
|
|
|
:class="{ 'menu-checkbox-checked': autoUpdate }"
|
|
|
|
/>{{ $t('settings.auto_update') }}
|
2021-02-25 09:01:11 +00:00
|
|
|
</button>
|
|
|
|
<button
|
2022-08-01 20:20:27 +00:00
|
|
|
v-if="!conversation"
|
2021-02-25 09:01:11 +00:00
|
|
|
class="button-default dropdown-item"
|
2022-08-01 20:20:27 +00:00
|
|
|
@click="collapseWithSubjects = !collapseWithSubjects"
|
2021-02-25 09:01:11 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2022-08-01 20:20:27 +00:00
|
|
|
:class="{ 'menu-checkbox-checked': collapseWithSubjects }"
|
|
|
|
/>{{ $t('settings.collapse_subject') }}
|
2021-04-07 19:42:34 +00:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
|
|
|
@click="openTab('general')"
|
|
|
|
>
|
|
|
|
<FAIcon icon="wrench" />{{ $t('settings.more_settings') }}
|
2021-02-25 09:01:11 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2021-04-07 19:42:34 +00:00
|
|
|
</template>
|
2022-07-31 09:35:48 +00:00
|
|
|
<template #trigger>
|
2021-04-07 19:42:34 +00:00
|
|
|
<button class="button-unstyled">
|
2022-08-04 20:32:06 +00:00
|
|
|
<FAIcon icon="bars" />
|
2021-02-25 08:56:16 +00:00
|
|
|
</button>
|
2021-04-07 19:42:34 +00:00
|
|
|
</template>
|
2021-02-25 08:56:16 +00:00
|
|
|
</Popover>
|
|
|
|
</template>
|
|
|
|
|
2022-08-01 20:20:27 +00:00
|
|
|
<script src="./quick_view_settings.js"></script>
|
2021-02-25 08:56:16 +00:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
2022-08-01 20:20:27 +00:00
|
|
|
.QuickViewSettings {
|
2021-02-25 08:56:16 +00:00
|
|
|
|
|
|
|
> button {
|
|
|
|
line-height: 100%;
|
|
|
|
height: 100%;
|
2022-04-20 16:57:01 +00:00
|
|
|
width: var(--__panel-heading-height-inner);
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
2021-02-25 08:56:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|