diff --git a/src/store.js b/src/store.js index 2df242ec..38bfb582 100644 --- a/src/store.js +++ b/src/store.js @@ -54,9 +54,6 @@ const store = new Vuex.Store({ sections(state) { return filterUserSections(state.config.sections || []); }, - widgets(state) { - return state.config.widgets || []; - }, theme(state) { return state.config.appConfig.theme; }, diff --git a/src/utils/ConfigAccumalator.js b/src/utils/ConfigAccumalator.js index 018c4f25..041306e9 100644 --- a/src/utils/ConfigAccumalator.js +++ b/src/utils/ConfigAccumalator.js @@ -78,23 +78,12 @@ export default class ConfigAccumulator { return sections; } - /* Widgets */ - widgets() { - const localWidgets = localStorage[localStorageKeys.CONF_WIDGETS]; - if (localWidgets) { - const json = JSON.parse(localWidgets); - if (json.length >= 1) return json; - } - return this.conf.widgets || []; - } - /* Complete config */ config() { return { appConfig: this.appConfig(), pageInfo: this.pageInfo(), sections: this.sections(), - widgets: this.widgets(), }; } }