File tree Expand file tree Collapse file tree
src/pods/import-collection Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .text-info {
2+ background-color : var (--background-dialog );
3+ padding-top : var (--space-md );
4+ display : flex;
5+ justify-content : center;
6+ }
7+
18.table-name ,
29.json-textarea {
310 background-color : var (--background-dialog );
Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ export const ImportPanel: React.FC<ImportPanelProps> = props => {
7676 const handleChangeTableName = ( e : React . ChangeEvent < HTMLInputElement > ) => {
7777 const tableName : string = e . currentTarget . value ;
7878 setEditTable ( { ...editTable , tableName } ) ;
79+ if ( e . currentTarget . value . length === 0 ) {
80+ setJsonError ( 'Name cannot be empty' ) ;
81+ } else {
82+ setJsonError ( null ) ;
83+ }
7984 } ;
8085
8186 return (
@@ -91,7 +96,7 @@ export const ImportPanel: React.FC<ImportPanelProps> = props => {
9196 />
9297 </ label >
9398 </ div >
94- < label >
99+ < label className = { classes . textInfo } >
95100 Copy here a document (you can copy it from a collection using a tool
96101 like Mongo Compass)
97102 </ label >
You can’t perform that action at this time.
0 commit comments