cleanup
This commit is contained in:
parent
cbda3b3d65
commit
3774a0f982
5 changed files with 9 additions and 16 deletions
|
|
@ -34,9 +34,6 @@ const MobilePostStatusButton = {
|
||||||
window.removeEventListener('resize', this.handleOSK)
|
window.removeEventListener('resize', this.handleOSK)
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isLoggedIn() {
|
|
||||||
return useUsersStore().loggedIn
|
|
||||||
},
|
|
||||||
isHidden() {
|
isHidden() {
|
||||||
if (HIDDEN_FOR_PAGES.has(this.$route.name)) {
|
if (HIDDEN_FOR_PAGES.has(this.$route.name)) {
|
||||||
return true
|
return true
|
||||||
|
|
@ -52,6 +49,7 @@ const MobilePostStatusButton = {
|
||||||
autohideFloatingPostButton() {
|
autohideFloatingPostButton() {
|
||||||
return !!useMergedConfigStore().mergedConfig.autohideFloatingPostButton
|
return !!useMergedConfigStore().mergedConfig.autohideFloatingPostButton
|
||||||
},
|
},
|
||||||
|
...mapState(useUsersStore, ['loggedIn']),
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
autohideFloatingPostButton: function (isEnabled) {
|
autohideFloatingPostButton: function (isEnabled) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
class="MobilePostButton button-default new-status-button"
|
class="MobilePostButton button-default new-status-button"
|
||||||
:class="{ 'hidden': isHidden, 'always-show': isPersistent }"
|
:class="{ 'hidden': isHidden, 'always-show': isPersistent }"
|
||||||
:title="$t('post_status.new_status')"
|
:title="$t('post_status.new_status')"
|
||||||
|
|
|
||||||
|
|
@ -100,9 +100,6 @@ const SettingsModalAdminContent = {
|
||||||
user() {
|
user() {
|
||||||
return useUsersStore().currentUser
|
return useUsersStore().currentUser
|
||||||
},
|
},
|
||||||
isLoggedIn() {
|
|
||||||
return !!useUsersStore().currentUser
|
|
||||||
},
|
|
||||||
open() {
|
open() {
|
||||||
return useInterfaceStore().settingsModalState !== 'hidden'
|
return useInterfaceStore().settingsModalState !== 'hidden'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,6 @@ const SettingsModalContent = {
|
||||||
OldThemeTab,
|
OldThemeTab,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isLoggedIn() {
|
|
||||||
return !!useUsersStore().currentUser
|
|
||||||
},
|
|
||||||
open() {
|
open() {
|
||||||
return useInterfaceStore().settingsModalState !== 'hidden'
|
return useInterfaceStore().settingsModalState !== 'hidden'
|
||||||
},
|
},
|
||||||
|
|
@ -87,6 +84,7 @@ const SettingsModalContent = {
|
||||||
expertLevel() {
|
expertLevel() {
|
||||||
return useMergedConfigStore().mergedConfig.expertLevel
|
return useMergedConfigStore().mergedConfig.expertLevel
|
||||||
},
|
},
|
||||||
|
...mapState(useUsersStore, ['loggedIn']),
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<GeneralTab />
|
<GeneralTab />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
:label="$t('settings.profile_tab')"
|
:label="$t('settings.profile_tab')"
|
||||||
icon="user"
|
icon="user"
|
||||||
data-tab-name="profile"
|
data-tab-name="profile"
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<ProfileTab />
|
<ProfileTab />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
:label="$t('settings.composing')"
|
:label="$t('settings.composing')"
|
||||||
icon="pen-alt"
|
icon="pen-alt"
|
||||||
data-tab-name="composing"
|
data-tab-name="composing"
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
<LayoutTab />
|
<LayoutTab />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
:full-width="true"
|
:full-width="true"
|
||||||
:label="$t('settings.notifications')"
|
:label="$t('settings.notifications')"
|
||||||
icon="bell"
|
icon="bell"
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
<FilteringTab />
|
<FilteringTab />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
:label="$t('settings.mutes_and_blocks')"
|
:label="$t('settings.mutes_and_blocks')"
|
||||||
icon="eye-slash"
|
icon="eye-slash"
|
||||||
data-tab-name="mutesAndBlocks"
|
data-tab-name="mutesAndBlocks"
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
<ClutterTab />
|
<ClutterTab />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
:label="$t('settings.security_tab')"
|
:label="$t('settings.security_tab')"
|
||||||
icon="lock"
|
icon="lock"
|
||||||
data-tab-name="security"
|
data-tab-name="security"
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
<SecurityTab />
|
<SecurityTab />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoggedIn"
|
v-if="loggedIn"
|
||||||
:label="$t('settings.data_import_export_tab')"
|
:label="$t('settings.data_import_export_tab')"
|
||||||
icon="download"
|
icon="download"
|
||||||
data-tab-name="dataImportExport"
|
data-tab-name="dataImportExport"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue