refactor: move presets to own moonraker db namespace and create sub module of gui store (#405)

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej authored and GitHub committed 2021-11-07 15:22:28 +01:00
1 parent 6a9aef4785
commit b7e58d98ff
13 files changed
+249 -86

No files matched your search

+3
View File
@@ -29,6 +29,9 @@ export const actions: ActionTree<ServerState, RootState> = {
Vue.$socket.emit('server.database.post_item', { namespace: 'mainsail', key: 'init', value: true })
dispatch('printer/init', null, { root: true })
}
if (payload.namespaces?.includes('webcams')) dispatch('gui/webcam/init', null, { root: true })
if (payload.namespaces?.includes('mainsail_presets')) dispatch('gui/presets/init', null, { root: true })
},
initServerInfo: function ({ dispatch, commit }, payload) {