File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 432432 <g v-if =" syncFeedbackActive" >
433433 <transition name =" fade" >
434434 <g
435- v-if =" isSensorTriggered('filament_tension') && isSensorTriggered('filament_compression') "
435+ v-if =" syncFeedbackState === SYNC_FEEDBACK_NEUTRAL "
436436 key =" neutral"
437437 >
438438 <text
447447 />
448448 </g >
449449 <g
450- v-else-if =" isSensorTriggered('filament_tension') "
450+ v-else-if =" syncFeedbackState === SYNC_FEEDBACK_TENSION "
451451 key =" tension"
452452 >
453453 <text
466466 />
467467 </g >
468468 <g
469- v-else-if =" isSensorTriggered('filament_compression') "
469+ v-else-if =" syncFeedbackState === SYNC_FEEDBACK_COMPRESSED "
470470 key =" compression"
471471 >
472472 <text
Original file line number Diff line number Diff line change @@ -370,7 +370,14 @@ export default class MmuMixin extends Vue {
370370 return this . mmuState ?. sync_drive ?? false
371371 }
372372
373- // return this.mmuState?.sync_feedback_state
373+ get syncFeedbackState ( ) : string {
374+ return this . mmuState ?. sync_feedback_state ?? this . SYNC_FEEDBACK_NONE
375+ }
376+
377+ readonly SYNC_FEEDBACK_COMPRESSED = 'compressed'
378+ readonly SYNC_FEEDBACK_TENSION = 'tension'
379+ readonly SYNC_FEEDBACK_NEUTRAL = 'neutral'
380+ readonly SYNC_FEEDBACK_NONE = ''
374381
375382 get syncFeedbackEnabled ( ) : boolean {
376383 return this . mmuState ?. sync_feedback_enabled ?? false
You can’t perform that action at this time.
0 commit comments