mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-21 07:53:16 +01:00
indentation adjustments
This commit is contained in:
parent
5e749c1422
commit
f7779bed74
2 changed files with 10 additions and 10 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
18
src/store.js
18
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 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue