fix bugs
This commit is contained in:
parent
2802e47ac9
commit
44d6d36ed1
@ -1,12 +1,12 @@
|
|||||||
import Popover from '../popover/popover.vue'
|
import Popover from '../popover/popover.vue'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import { faList, faFolderTree, faBarsStaggered, faWrench } from '@fortawesome/free-solid-svg-icons'
|
import { faList, faFolderTree, faBars, faWrench } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
library.add(
|
library.add(
|
||||||
faList,
|
faList,
|
||||||
faFolderTree,
|
faFolderTree,
|
||||||
faBarsStaggered,
|
faBars,
|
||||||
faWrench
|
faWrench
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,7 +51,8 @@ const QuickViewSettings = {
|
|||||||
showUserAvatars: {
|
showUserAvatars: {
|
||||||
get () { return this.mergedConfig.mentionLinkShowAvatar },
|
get () { return this.mergedConfig.mentionLinkShowAvatar },
|
||||||
set () {
|
set () {
|
||||||
const value = !this.mentionLinkShowAvatar
|
const value = !this.showUserAvatars
|
||||||
|
console.log(value)
|
||||||
this.$store.dispatch('setOption', { name: 'mentionLinkShowAvatar', value })
|
this.$store.dispatch('setOption', { name: 'mentionLinkShowAvatar', value })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -6,30 +6,28 @@
|
|||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<div v-if="loggedIn">
|
<button
|
||||||
<button
|
class="button-default dropdown-item"
|
||||||
class="button-default dropdown-item"
|
@click="conversationDisplay = 'tree'"
|
||||||
@click="conversationDisplay = 'tree'"
|
>
|
||||||
>
|
<span
|
||||||
<span
|
class="menu-checkbox -radio"
|
||||||
class="menu-checkbox -radio"
|
:class="{ 'menu-checkbox-checked': conversationDisplay === 'tree' }"
|
||||||
:class="{ 'menu-checkbox-checked': conversationDisplay === 'tree' }"
|
/><FAIcon icon="folder-tree"/> {{ $t('settings.conversation_display_tree_quick') }}
|
||||||
/><FAIcon icon="folder-tree"/> {{ $t('settings.conversation_display_tree_quick') }}
|
</button>
|
||||||
</button>
|
<button
|
||||||
<button
|
class="button-default dropdown-item"
|
||||||
class="button-default dropdown-item"
|
@click="conversationDisplay = 'linear'"
|
||||||
@click="conversationDisplay = 'linear'"
|
>
|
||||||
>
|
<span
|
||||||
<span
|
class="menu-checkbox -radio"
|
||||||
class="menu-checkbox -radio"
|
:class="{ 'menu-checkbox-checked': conversationDisplay === 'linear' }"
|
||||||
:class="{ 'menu-checkbox-checked': conversationDisplay === 'linear' }"
|
/><FAIcon icon="list"/> {{ $t('settings.conversation_display_linear_quick') }}
|
||||||
/><FAIcon icon="list"/> {{ $t('settings.conversation_display_linear_quick') }}
|
</button>
|
||||||
</button>
|
<div
|
||||||
<div
|
role="separator"
|
||||||
role="separator"
|
class="dropdown-divider"
|
||||||
class="dropdown-divider"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="button-default dropdown-item"
|
class="button-default dropdown-item"
|
||||||
@click="showUserAvatars = !showUserAvatars"
|
@click="showUserAvatars = !showUserAvatars"
|
||||||
@ -69,7 +67,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<button class="button-unstyled">
|
<button class="button-unstyled">
|
||||||
<FAIcon icon="bars-staggered" />
|
<FAIcon icon="bars" />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
Loading…
Reference in New Issue
Block a user