Skip to content

Commit

Permalink
Update TheEditor.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Jun 12, 2024
1 parent 72657da commit 778a361
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/TheEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@keydown.esc="escClose"
@keydown.ctrl.shift.s.prevent="restartServiceNameExists && save(restartServiceName)"
@keydown.meta.shift.s.prevent="restartServiceNameExists && save(restartServiceName)"
@keydown.ctrl.s.prevent="save(null)"
@keydown.meta.s.prevent="save(null)">
@keydown.ctrl.s.prevent="save(null, false)"
@keydown.meta.s.prevent="save(null, false)">
<panel
card-class="editor-dialog"
:icon="isWriteable ? mdiFileDocumentEditOutline : mdiFileDocumentOutline"
Expand Down Expand Up @@ -344,13 +344,13 @@ export default class TheEditor extends Mixins(BaseMixin) {
else this.dialogConfirmChange = true
}
save(restartServiceName: string | null = null) {
save(restartServiceName: string | null = null, close: boolean = this.saveAndClose) {
this.dialogConfirmChange = false
this.$store.dispatch('editor/saveFile', {
content: this.sourcecode,
restartServiceName: restartServiceName,
close: this.saveAndClose
close: close
})
}
Expand Down

0 comments on commit 778a361

Please sign in to comment.