From f7779bed74e2e2ab8d44b30fc18bf025351ea861 Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Mon, 8 Sep 2025 18:48:49 +0000 Subject: [PATCH] indentation adjustments --- src/components/Settings/SearchBar.vue | 2 +- src/store.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vue index 84278506..4e98314c 100644 --- a/src/components/Settings/SearchBar.vue +++ b/src/components/Settings/SearchBar.vue @@ -89,7 +89,7 @@ export default { akn: new ArrowKeyNavigation(), getCustomKeyShortcuts, showSearchPanel: false, - // goToLinkEnabled is now managed by Vuex/appConfig + // goToLinkEnabled is now managed by Vuex/appConfig }; }, computed: { diff --git a/src/store.js b/src/store.js index edf86265..b0a6551b 100644 --- a/src/store.js +++ b/src/store.js @@ -73,10 +73,10 @@ const store = new Vuex.Store({ if (!state.config) return {}; return state.config.appConfig || {}; }, - goToLinkEnabled(state, getters) { - // Default to true if not set - return typeof getters.appConfig.goToLinkEnabled === 'boolean' ? getters.appConfig.goToLinkEnabled : true; - }, + goToLinkEnabled(state, getters) { + // Default to true if not set + return typeof getters.appConfig.goToLinkEnabled === 'boolean' ? getters.appConfig.goToLinkEnabled : true; + }, sections(state) { return filterUserSections(state.config.sections || []); }, @@ -241,11 +241,11 @@ const store = new Vuex.Store({ if (!state.config.appConfig) state.config.appConfig = {}; state.config.appConfig.disableWebSearch = value; }, - // Dynamically update goToLinkEnabled in appConfig - setGoToLinkEnabled(state, value) { - if (!state.config.appConfig) state.config.appConfig = {}; - state.config.appConfig.goToLinkEnabled = value; - }, + // Dynamically update goToLinkEnabled in appConfig + setGoToLinkEnabled(state, value) { + if (!state.config.appConfig) state.config.appConfig = {}; + state.config.appConfig.goToLinkEnabled = value; + }, [UPDATE_SECTION](state, payload) { const { sectionIndex, sectionData } = payload; const newConfig = { ...state.config };