@@ -348,19 +348,19 @@ export default class MmuMixin extends Vue {
348348 return this . mmuState ?. action
349349 }
350350
351- readonly ACTION_IDLE : string = 'Idle'
352- readonly ACTION_LOADING : string = 'Loading'
353- readonly ACTION_LOADING_EXTRUDER : string = 'Loading Ext'
354- readonly ACTION_UNLOADING : string = 'Unloading'
355- readonly ACTION_UNLOADING_EXTRUDER : string = 'Unloading Ext'
356- readonly ACTION_FORMING_TIP : string = 'Forming Tip'
357- readonly ACTION_CUTTING_TIP : string = 'Cutting Tip'
358- readonly ACTION_HEATING : string = 'Heating'
359- readonly ACTION_CHECKING : string = 'Checking'
360- readonly ACTION_HOMING : string = 'Homing'
361- readonly ACTION_SELECTING : string = 'Selecting'
362- readonly ACTION_CUTTING_FILAMENT : string = 'Cutting Filament'
363- readonly ACTION_PURGING : string = 'Purging'
351+ readonly ACTION_IDLE = 'Idle'
352+ readonly ACTION_LOADING = 'Loading'
353+ readonly ACTION_LOADING_EXTRUDER = 'Loading Ext'
354+ readonly ACTION_UNLOADING = 'Unloading'
355+ readonly ACTION_UNLOADING_EXTRUDER = 'Unloading Ext'
356+ readonly ACTION_FORMING_TIP = 'Forming Tip'
357+ readonly ACTION_CUTTING_TIP = 'Cutting Tip'
358+ readonly ACTION_HEATING = 'Heating'
359+ readonly ACTION_CHECKING = 'Checking'
360+ readonly ACTION_HOMING = 'Homing'
361+ readonly ACTION_SELECTING = 'Selecting'
362+ readonly ACTION_CUTTING_FILAMENT = 'Cutting Filament'
363+ readonly ACTION_PURGING = 'Purging'
364364
365365 get hasBypass ( ) : boolean {
366366 return this . mmuState ?. has_bypass ?? false
@@ -407,10 +407,10 @@ export default class MmuMixin extends Vue {
407407 return this . mmuState ?. spoolman_support ?? 'off'
408408 }
409409
410- readonly SPOOLMAN_OFF : string = 'off' // Spoolman disabled
411- readonly SPOOLMAN_READONLY : string = 'readonly' // Get filament attributes only
412- readonly SPOOLMAN_PUSH : string = 'push' // Local gatemap is the source or truth
413- readonly SPOOLMAN_PULL : string = 'pull' // Spoolman db is the source of truth
410+ readonly SPOOLMAN_OFF = 'off' // Spoolman disabled
411+ readonly SPOOLMAN_READONLY = 'readonly' // Get filament attributes only
412+ readonly SPOOLMAN_PUSH = 'push' // Local gatemap is the source of truth
413+ readonly SPOOLMAN_PULL = 'pull' // Spoolman db is the source of truth
414414
415415 get sensors ( ) : Record < string , boolean | null > {
416416 return this . mmuState ?. sensors ?? { }
@@ -420,8 +420,8 @@ export default class MmuMixin extends Vue {
420420 return this . mmuState ?. espooler_active ?? ''
421421 }
422422
423- readonly ESPOOLER_REWIND : string = 'rewind'
424- readonly ESPOOLER_ASSIST : string = 'assist'
423+ readonly ESPOOLER_REWIND = 'rewind'
424+ readonly ESPOOLER_ASSIST = 'assist'
425425
426426 /*
427427 * Optional printer variables based on selector type
@@ -494,14 +494,14 @@ export default class MmuMixin extends Vue {
494494 return this . $typedState . printer . printer [ 'gcode_macro _MMU_LED_VARS' ] ?. default_status_effect ?? 'off'
495495 }
496496
497- readonly LED_OPTIONS : string [ ] = [ 'off' , 'gate_status' , 'filament_color' , 'slicer_color' ]
498- readonly LED_STATUS_OPTIONS : string [ ] = [ ...this . LED_OPTIONS , 'on' ]
497+ readonly LED_OPTIONS = [ 'off' , 'gate_status' , 'filament_color' , 'slicer_color' ] as const
498+ readonly LED_STATUS_OPTIONS = [ ...this . LED_OPTIONS , 'on' ] as const
499499
500500 get macroVarsAutomapStrategy ( ) : string {
501501 return this . $typedState . printer . printer [ 'gcode_macro _MMU_SOFTWARE_VARS' ] ?. automap_strategy ?? 'none'
502502 }
503503
504- readonly AUTOMAP_OPTIONS : string [ ] = [ 'none' , 'filament_name' , 'material' , 'color' , 'closest_color' , 'spool_id' ]
504+ readonly AUTOMAP_OPTIONS = [ 'none' , 'filament_name' , 'material' , 'color' , 'closest_color' , 'spool_id' ] as const
505505
506506 /*
507507 * Miscellaneous
0 commit comments