We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1902d4 commit 5794dcdCopy full SHA for 5794dcd
src/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.tsx
@@ -21,7 +21,10 @@ interface SchemaTreeProps {
21
}
22
23
function validateRelativePath(value: string) {
24
- if (value && /\s/.test(value)) {
+ if (!value) {
25
+ return i18n('schema.tree.dialog.empty');
26
+ }
27
+ if (/\s/.test(value)) {
28
return i18n('schema.tree.dialog.whitespace');
29
30
return '';
src/containers/Tenant/i18n/en.json
@@ -45,6 +45,7 @@
45
"schema.tree.dialog.placeholder": "Relative path",
46
"schema.tree.dialog.invalid": "Invalid path",
47
"schema.tree.dialog.whitespace": "Whitespace is not allowed",
48
+ "schema.tree.dialog.empty": "Path is empty",
49
"schema.tree.dialog.header": "Create directory",
50
"schema.tree.dialog.description": "Inside",
51
"schema.tree.dialog.buttonCancel": "Cancel",
0 commit comments