logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 44d6d36ed19f58800800cd9c394464658b688889
parent 2802e47ac947bc884dcbc86f00803fd3613efa95
Author: Henry Jameson <me@hjkos.com>
Date:   Thu,  4 Aug 2022 23:32:06 +0300

fix bugs

Diffstat:

Msrc/components/quick_view_settings/quick_view_settings.js7++++---
Msrc/components/quick_view_settings/quick_view_settings.vue48+++++++++++++++++++++++-------------------------
2 files changed, 27 insertions(+), 28 deletions(-)

diff --git a/src/components/quick_view_settings/quick_view_settings.js b/src/components/quick_view_settings/quick_view_settings.js @@ -1,12 +1,12 @@ import Popover from '../popover/popover.vue' import { mapGetters } from 'vuex' 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( faList, faFolderTree, - faBarsStaggered, + faBars, faWrench ) @@ -51,7 +51,8 @@ const QuickViewSettings = { showUserAvatars: { get () { return this.mergedConfig.mentionLinkShowAvatar }, set () { - const value = !this.mentionLinkShowAvatar + const value = !this.showUserAvatars + console.log(value) this.$store.dispatch('setOption', { name: 'mentionLinkShowAvatar', value }) } }, diff --git a/src/components/quick_view_settings/quick_view_settings.vue b/src/components/quick_view_settings/quick_view_settings.vue @@ -6,30 +6,28 @@ > <template #content> <div class="dropdown-menu"> - <div v-if="loggedIn"> - <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" - /> - </div> + <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" + /> <button class="button-default dropdown-item" @click="showUserAvatars = !showUserAvatars" @@ -69,7 +67,7 @@ </template> <template #trigger> <button class="button-unstyled"> - <FAIcon icon="bars-staggered" /> + <FAIcon icon="bars" /> </button> </template> </Popover>