feature: process notify_klippy_shutdown from moonraker
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
aeb6ae1ec9
commit
42071ae422
2 files changed
+11
No files matched your search
@@ -18,6 +18,13 @@ export default {
|
||||
Vue.prototype.$socket.sendObj('server.info', {}, 'server/getInfo');
|
||||
},
|
||||
|
||||
setKlippyShutdown(state) {
|
||||
Vue.set(state, 'klippy_state', 'shutdown')
|
||||
Vue.set(state, 'klippy_message', 'Shutdown...')
|
||||
|
||||
Vue.prototype.$socket.sendObj('server.info', {}, 'server/getInfo');
|
||||
},
|
||||
|
||||
setData(state, payload) {
|
||||
if ("requestParams" in payload) delete payload.requestParams
|
||||
|
||||
|
||||
@@ -51,6 +51,10 @@ export default {
|
||||
commit('server/setKlippyDisconnected', null, { root: true })
|
||||
break
|
||||
|
||||
case 'notify_klippy_shutdown':
|
||||
commit('server/setKlippyShutdown', null, { root: true })
|
||||
break
|
||||
|
||||
case 'notify_filelist_changed':
|
||||
switch(payload.params[0].action) {
|
||||
case 'upload_file':
|
||||
|
||||
Reference in new issue
Block a user