feat: add retry button to ScrewsTiltAdjust helper dialog (#1429)

This commit is contained in:
Stefan Dej 2023-06-19 19:56:01 +02:00 committed by GitHub
parent 6ce0f4f074
commit 2752cfc975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<template>
<v-dialog :value="showDialog" width="400" persistent :fullscreen="isMobile">
<panel
:title="$t('ScrewsTiltAdjust.Headline').toString()"
:title="$t('ScrewsTiltAdjust.Headline')"
:icon="mdiArrowCollapseDown"
card-class="manual_probe-dialog"
:margin-bottom="false"
@ -24,12 +24,15 @@
<v-divider v-if="index" :key="`result-divider-${name}`" class="my-1" />
<the-screws-tilt-adjust-dialog-entry
:key="`result-${name}-${name}`"
:name="name"
:name="name.toString()"
:result="result" />
</template>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-spacer />
<v-btn text @click="retryScrewsTiltAdjust">
{{ $t('ScrewsTiltAdjust.Retry') }}
</v-btn>
<v-btn color="primary" text @click="clearScrewsTiltAdjust">
{{ $t('ScrewsTiltAdjust.Accept') }}
</v-btn>
@ -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')
}
}
</script>

View File

@ -1101,7 +1101,8 @@
"Accept": "akzeptieren",
"Base": "Basis",
"ErrorText": "Ein Fehler ist beim Abtasten aufgetreten.",
"Headline": "Neigungsverstellung"
"Headline": "Neigungsverstellung",
"Retry": "wiederholen"
},
"Timelapse": {
"AllFiles": "Alle",

View File

@ -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",