Skip to content

Commit

Permalink
fix: hide screws tilt adjust helper dialog, when using MAX_DEVIATION
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Jul 19, 2023
1 parent a1d3dc9 commit d7ddeb8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/dialogs/TheScrewsTiltAdjustDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ export default class TheScrewsTiltAdjustDialog extends Mixins(BaseMixin, Control
return this.$store.state.printer.screws_tilt_adjust?.error ?? false
}
get max_diff() {
return this.$store.state.printer.screws_tilt_adjust?.max_diff ?? null
}
get results() {
return this.$store.state.printer.screws_tilt_adjust?.results ?? {}
}
get showDialog() {
if (!this.boolScrewsTiltAdjustDialog) return false
if (this.max_diff !== null) return false
return this.error || Object.keys(this.results).length
}
Expand Down

0 comments on commit d7ddeb8

Please sign in to comment.