diff --git a/src/components/panels/Machine/ConfigFilesPanel.vue b/src/components/panels/Machine/ConfigFilesPanel.vue index 650fb004..631a21b8 100644 --- a/src/components/panels/Machine/ConfigFilesPanel.vue +++ b/src/components/panels/Machine/ConfigFilesPanel.vue @@ -168,22 +168,19 @@ - - - - - - - - {{ $t('Machine.ConfigFilesPanel.Cancel') }} - {{ $t('Machine.ConfigFilesPanel.Rename') }} - - - + - + @@ -192,10 +189,40 @@ + + + + + + + + + {{ $t('Machine.ConfigFilesPanel.Cancel') }} + {{ $t('Machine.ConfigFilesPanel.Rename') }} + + + + - + @@ -206,8 +233,17 @@ + - + @@ -218,6 +254,9 @@ +

{{ $t('Machine.ConfigFilesPanel.DeleteDirectoryQuestion', { name: dialogDeleteDirectory.item.filename } )}}

@@ -316,6 +355,10 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { $refs!: { fileUpload: HTMLInputElement, + inputDialogCreateFileName: HTMLInputElement, + inputDialogRenameFileName: HTMLInputElement, + inputDialogCreateDirectoryName: HTMLInputElement, + inputDialogRenameDirectoryName: HTMLInputElement, } private selected = [] @@ -344,6 +387,10 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { svg: null } } + private dialogCreateFile = { + show: false, + name: '', + } private dialogRenameFile: dialogRenameObject = { show: false, newName: '', @@ -354,10 +401,6 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { modified: new Date() } } - private dialogCreateFile = { - show: false, - name: '', - } private dialogCreateDirectory = { show: false, name: '', @@ -605,6 +648,10 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { createDirecotry() { this.dialogCreateDirectory.name = '' this.dialogCreateDirectory.show = true + + setTimeout(() => { + this.$refs.inputDialogCreateDirectoryName?.focus() + }, 200) } createDirectoryAction() { @@ -619,6 +666,10 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { this.dialogRenameDirectory.item = item this.dialogRenameDirectory.newName = item.filename this.dialogRenameDirectory.show = true + + setTimeout(() => { + this.$refs.inputDialogRenameDirectoryName?.focus() + }, 200) } renameDirectoryAction() { @@ -642,6 +693,10 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { createFile() { this.dialogCreateFile.name = '' this.dialogCreateFile.show = true + + setTimeout(() => { + this.$refs.inputDialogCreateFileName?.focus() + }, 200) } createFileAction() { @@ -669,6 +724,10 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { this.dialogRenameFile.item = item this.dialogRenameFile.newName = item.filename this.dialogRenameFile.show = true + + setTimeout(() => { + this.$refs.inputDialogRenameFileName?.focus() + }, 200) } renameFileAction() {