feat: add special output text for klipper stop service
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
4f65bd4ba2
commit
81a7289194
@ -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)
|
||||
|
@ -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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user