From 2752cfc975bfe4391657bf03e62db5f5317c523b Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 19 Jun 2023 19:56:01 +0200 Subject: [PATCH] feat: add retry button to ScrewsTiltAdjust helper dialog (#1429) --- .../dialogs/TheScrewsTiltAdjustDialog.vue | 15 ++++++++++++--- src/locales/de.json | 3 ++- src/locales/en.json | 3 ++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/dialogs/TheScrewsTiltAdjustDialog.vue b/src/components/dialogs/TheScrewsTiltAdjustDialog.vue index e3e75441..caeaa9d8 100644 --- a/src/components/dialogs/TheScrewsTiltAdjustDialog.vue +++ b/src/components/dialogs/TheScrewsTiltAdjustDialog.vue @@ -1,7 +1,7 @@ - + + + {{ $t('ScrewsTiltAdjust.Retry') }} + {{ $t('ScrewsTiltAdjust.Accept') }} @@ -79,5 +82,11 @@ export default class TheScrewsTiltAdjustDialog extends Mixins(BaseMixin, Control clearScrewsTiltAdjust() { this.$store.dispatch('printer/clearScrewsTiltAdjust') } + + async retryScrewsTiltAdjust() { + await this.$store.dispatch('printer/clearScrewsTiltAdjust') + + this.doSend('SCREWS_TILT_CALCULATE') + } } diff --git a/src/locales/de.json b/src/locales/de.json index d3c4153a..0cb6b751 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1101,7 +1101,8 @@ "Accept": "akzeptieren", "Base": "Basis", "ErrorText": "Ein Fehler ist beim Abtasten aufgetreten.", - "Headline": "Neigungsverstellung" + "Headline": "Neigungsverstellung", + "Retry": "wiederholen" }, "Timelapse": { "AllFiles": "Alle", diff --git a/src/locales/en.json b/src/locales/en.json index adedbda5..e07c66cc 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1101,7 +1101,8 @@ "Accept": "accept", "Base": "Base", "ErrorText": "Something went wrong during the probing process.", - "Headline": "Screws tilt adjust" + "Headline": "Screws tilt adjust", + "Retry": "retry" }, "Timelapse": { "AllFiles": "All",