File tree 2 files changed +7
-12
lines changed 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,9 @@ export const mutations = {
14
14
setResetKlippy ( state ) {
15
15
const { klippy_retries, info } = defaultState ( )
16
16
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
21
20
} ,
22
21
23
22
setServerInfo ( state , payload : ServerInfo ) {
Original file line number Diff line number Diff line change @@ -43,16 +43,12 @@ export interface ServerInfo {
43
43
registered_directories : string [ ] ;
44
44
warnings : string [ ] ;
45
45
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 ;
48
49
}
49
50
50
- export type KlippyState =
51
- 'disconnected' |
52
- 'startup' |
53
- 'ready' |
54
- 'error' |
55
- 'shutdown'
51
+ export type KlippyState = 'disconnected' | 'startup' | 'ready' | 'error' | 'shutdown'
56
52
57
53
export interface SystemInfo {
58
54
available_services ?: string [ ] ;
You can’t perform that action at this time.
0 commit comments