feat: add special output text for klipper stop service

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-12-26 00:09:26 +01:00
parent 4f65bd4ba2
commit 81a7289194
No known key found for this signature in database
GPG Key ID: 5D3A5823133D2246
2 changed files with 5 additions and 1 deletions

View File

@ -195,7 +195,10 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) {
const functionNameUppercase = functionName.trim().charAt(0).toUpperCase() + functionName.trim().slice(1)
this.dialogConfirmation.title = this.$t('App.TopCornerMenu.ConfirmationDialog.Title.' + functionNameUppercase)+''
this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.' + functionNameUppercase)+''
if (serviceName === 'klipper' && action === 'Stop') this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperStop')+''
else this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.' + functionNameUppercase)+''
this.dialogConfirmation.actionButtonText = this.$t('App.TopCornerMenu.' + action.charAt(0).toUpperCase() + action.slice(1))+''
this.dialogConfirmation.show = true
} else executableFunction(serviceName)

View File

@ -34,6 +34,7 @@
"HostShutdown": "Host shutdown"
},
"Description": {
"KlipperStop": "If you stop Klipper now, the current print will fail.",
"KlipperRestart": "If you restart Klipper now, the current print will fail.",
"KlipperFirmwareRestart": "If you restart the Klipper firmware now, the current print will fail.",
"ServiceStart": "If you start this service now, you are very likely risking a failure of your ongoing print job.",