feat: add special output text for klipper stop service

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-12-26 00:09:26 +01:00
1 parent 4f65bd4ba2
commit 81a7289194
2 files changed
+5 -1

No files matched your search

+4 -1
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)
+1
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.",