File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Schema/CreateDirectoryDialog Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ interface SchemaTreeProps {
2121}
2222
2323function validateRelativePath ( value : string ) {
24- if ( value && / \s / . test ( value ) ) {
24+ if ( ! value ) {
25+ return i18n ( 'schema.tree.dialog.empty' ) ;
26+ }
27+ if ( / \s / . test ( value ) ) {
2528 return i18n ( 'schema.tree.dialog.whitespace' ) ;
2629 }
2730 return '' ;
Original file line number Diff line number Diff line change 4545 "schema.tree.dialog.placeholder" : " Relative path" ,
4646 "schema.tree.dialog.invalid" : " Invalid path" ,
4747 "schema.tree.dialog.whitespace" : " Whitespace is not allowed" ,
48+ "schema.tree.dialog.empty" : " Path is empty" ,
4849 "schema.tree.dialog.header" : " Create directory" ,
4950 "schema.tree.dialog.description" : " Inside" ,
5051 "schema.tree.dialog.buttonCancel" : " Cancel" ,
You can’t perform that action at this time.
0 commit comments