Make new file and folder name a required field
This commit is contained in:
@@ -108,6 +108,7 @@ async function onNewFile() {
|
||||
const newFileName = await inputDialog.value.prompt({
|
||||
message: t('filemanager.newFileDialog.title'),
|
||||
value: '',
|
||||
required: true,
|
||||
confirmStyle: 'success',
|
||||
confirmLabel: t('filemanager.newFileDialog.create'),
|
||||
rejectLabel: t('main.dialog.cancel'),
|
||||
@@ -124,6 +125,7 @@ async function onNewFolder() {
|
||||
const newFolderName = await inputDialog.value.prompt({
|
||||
message: t('filemanager.newDirectoryDialog.title'),
|
||||
value: '',
|
||||
required: true,
|
||||
confirmStyle: 'success',
|
||||
confirmLabel: t('filemanager.newFileDialog.create'),
|
||||
rejectLabel: t('main.dialog.cancel'),
|
||||
|
||||
Reference in New Issue
Block a user