1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

Added setting.store

This commit is contained in:
2020-05-29 18:19:35 +02:00
parent d6a5239cb2
commit 5dc901a75c
4 changed files with 31 additions and 15 deletions

View File

@ -5,6 +5,7 @@ import Vuex from 'vuex';
import VuexPersist from 'vuex-persist';
import application from './modules/application.store';
import settings from './modules/settings.store';
import connections from './modules/connections.store';
import workspaces from './modules/workspaces.store';
import notifications from './modules/notifications.store';
@ -13,7 +14,8 @@ const vuexLocalStorage = new VuexPersist({
key: 'application', // The key to store the state on in the storage provider.
storage: window.localStorage,
reducer: state => ({
connections: state.connections
connections: state.connections,
settings: state.settings
})
});
@ -23,6 +25,7 @@ export default new Vuex.Store({
strict: true,
modules: {
application,
settings,
connections,
workspaces,
notifications