diff --git a/src/components/TheEditor.vue b/src/components/TheEditor.vue
index 1af0ae7a9..f35e5ac7e 100644
--- a/src/components/TheEditor.vue
+++ b/src/components/TheEditor.vue
@@ -112,7 +112,7 @@
{{ $t('Editor.SaveClose') }}
-
+
{{ $t('Editor.SaveRestart') }}
@@ -246,15 +246,23 @@ export default class TheEditor extends Mixins(BaseMixin) {
return this.filenameWithoutExtension
if (this.filename.startsWith('webcam') && ['conf', 'txt'].includes(this.fileExtension)) return 'webcamd'
if (this.filename.startsWith('mooncord') && this.fileExtension === 'json') return 'mooncord'
+ if (this.filename === 'moonraker.conf') return this.moonrakerRestartInstance ?? 'moonraker'
+
if (this.fileExtension === 'cfg') return 'klipper'
return null
}
get restartServiceNameExists() {
+ if (this.restartServiceName) return true
+
return this.availableServices.includes(this.restartServiceName)
}
+ get moonrakerRestartInstance() {
+ return this.$store.state.gui.editor.moonrakerRestartInstance
+ }
+
get confirmUnsavedChanges() {
return this.$store.state.gui.editor.confirmUnsavedChanges ?? false
}