diff --git a/src/App.js b/src/App.js index afb1d69b6..d0b27c331 100644 --- a/src/App.js +++ b/src/App.js @@ -154,7 +154,7 @@ export default { newPostButtonShown() { if (this.isChats) return false if (this.isListEdit) return false - return (this.alwaysShowNewPostButton || this.layoutType === 'mobile') + return this.alwaysShowNewPostButton || this.layoutType === 'mobile' }, reverseLayout() { const { thirdColumnMode, sidebarRight: reverseSetting } = @@ -172,8 +172,10 @@ export default { }, ...mapState(useSyncConfigStore, { - shoutboxPosition: (store) => store.mergedConfig.alwaysShowSubjectInput || false, - alwaysShowSubjectInput: (store) => store.mergedConfig.alwaysShowSubjectInput, + shoutboxPosition: (store) => + store.mergedConfig.alwaysShowSubjectInput || false, + alwaysShowSubjectInput: (store) => + store.mergedConfig.alwaysShowSubjectInput, }), ...mapState(useInterfaceStore, ['layoutType']), diff --git a/src/components/settings_modal/helpers/setting.js b/src/components/settings_modal/helpers/setting.js index 7ca98ebf8..522d2ad0a 100644 --- a/src/components/settings_modal/helpers/setting.js +++ b/src/components/settings_modal/helpers/setting.js @@ -1,6 +1,7 @@ import { cloneDeep, get, isEqual, set } from 'lodash' -import { useInstanceStore } from 'src/stores/instance' +import { useInstanceStore } from 'src/stores/instance.js' +import { useInterfaceStore } from 'src/stores/interface.js' import { useSyncConfigStore } from 'src/stores/sync_config.js' import DraftButtons from './draft_buttons.vue' import ModifiedIndicator from './modified_indicator.vue' diff --git a/src/components/settings_modal/tabs/developer_tab.js b/src/components/settings_modal/tabs/developer_tab.js index 39bb79cae..0bc258670 100644 --- a/src/components/settings_modal/tabs/developer_tab.js +++ b/src/components/settings_modal/tabs/developer_tab.js @@ -1,4 +1,5 @@ import { mapState } from 'pinia' + import { cacheKey, clearCache, emojiCacheKey } from 'src/services/sw/sw.js' import { useInstanceStore } from 'src/stores/instance.js' import BooleanSetting from '../helpers/boolean_setting.vue' @@ -20,7 +21,7 @@ const VersionTab = { 'backendVersion', 'backendRepository', 'frontendVersion', - ]) + ]), }, methods: { clearAssetCache() { diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js index 6aede461b..b8cbcdefa 100644 --- a/src/components/settings_modal/tabs/general_tab.js +++ b/src/components/settings_modal/tabs/general_tab.js @@ -76,7 +76,7 @@ const GeneralTab = { updateFont(key, value) { useSyncConfigStore().setPreference({ path: `simple.theme3hacks.fonts.${key}`, - value + value, }) }, }, diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index 1ac3265ba..af98bab94 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -15,10 +15,10 @@ import UserTimedFilterModal from 'src/components/user_timed_filter_modal/user_ti import { propsToNative } from 'src/services/attributes_helper/attributes_helper.service.js' import localeService from 'src/services/locale/locale.service.js' import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' +import { useEmojiStore } from 'src/stores/emoji.js' import { useInstanceStore } from 'src/stores/instance.js' import { usePostStatusStore } from 'src/stores/post_status' import { useSyncConfigStore } from 'src/stores/sync_config.js' -import { useEmojiStore } from 'src/stores/emoji.js' import { useInterfaceStore } from '../../stores/interface' import { useMediaViewerStore } from '../../stores/media_viewer' import AccountActions from '../account_actions/account_actions.vue' diff --git a/src/lib/language_plugin.js b/src/lib/language_plugin.js index dfb56082a..1dd079b52 100644 --- a/src/lib/language_plugin.js +++ b/src/lib/language_plugin.js @@ -1,5 +1,5 @@ export const piniaLanguagePlugin = ({ store, options }) => { - if (store.$id === 'serverSideStorage') { + if (store.$id === 'syncConfig') { store.$onAction(({ store }) => { console.log(store) }) diff --git a/src/stores/interface.js b/src/stores/interface.js index 93eea7a76..9bec78d96 100644 --- a/src/stores/interface.js +++ b/src/stores/interface.js @@ -64,7 +64,7 @@ export const useInterfaceStore = defineStore('interface', { this.temporaryChangesConfirm = confirm this.temporaryChangesRevert = revert const countdownFunc = () => { - if (this.temporaryChangesCountdown === 1) { + if (this.temporaryChangesCountdown <= 1) { this.temporaryChangesRevert() this.clearTemporaryChanges() } else {