File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,9 @@ export const mutations = {
1414 setResetKlippy ( state ) {
1515 const { klippy_retries, info } = defaultState ( )
1616
17- Object . assign ( state , {
18- klippy_retries,
19- info
20- } )
17+ state . klippy_retries = klippy_retries
18+ state . info . klippy_connected = info . klippy_connected
19+ state . info . klippy_state = info . klippy_state
2120 } ,
2221
2322 setServerInfo ( state , payload : ServerInfo ) {
Original file line number Diff line number Diff line change @@ -43,16 +43,12 @@ export interface ServerInfo {
4343 registered_directories : string [ ] ;
4444 warnings : string [ ] ;
4545 moonraker_version ?: string ;
46- api_version ?: number [ ]
47- api_version_string ?: string
46+ api_version ?: number [ ] ;
47+ api_version_string ?: string ;
48+ websocket_count ?: number ;
4849}
4950
50- export type KlippyState =
51- 'disconnected' |
52- 'startup' |
53- 'ready' |
54- 'error' |
55- 'shutdown'
51+ export type KlippyState = 'disconnected' | 'startup' | 'ready' | 'error' | 'shutdown'
5652
5753export interface SystemInfo {
5854 available_services ?: string [ ] ;
You can’t perform that action at this time.
0 commit comments