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:
1 parent
6a9aef4785
commit
b7e58d98ff
13 files changed
+249
-86
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user