File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
src/common/components/StorageDialog/tabs Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 138
138
"json" : " JSON" ,
139
139
"import_tests" : " Import tests" ,
140
140
"tests_imported" : " The tests have been imported" ,
141
- "import_error" : " An error occurred while importing the tests" ,
141
+ "import_test_error" : " An error occurred while importing the tests" ,
142
+ "import_config_error" : " An error occurred while importing the configuration" ,
142
143
"export" : " Export" ,
143
144
"import" : " Import" ,
144
145
"clear_history" : " Clear history" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default () => {
37
37
updateConfig ( ) ;
38
38
close ( ) ;
39
39
} else {
40
- updateToast ( t ( "storage.import_error " ) , "red" ) ;
40
+ updateToast ( t ( "storage.import_config_error " ) , "red" ) ;
41
41
}
42
42
} ) ;
43
43
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export default ({tests}) => {
50
50
updateToast ( t ( "storage.tests_imported" ) , "green" , faFileImport ) ;
51
51
updateTests ( ) ;
52
52
} else {
53
- updateToast ( t ( "storage.import_error " ) , "red" ) ;
53
+ updateToast ( t ( "storage.import_test_error " ) , "red" ) ;
54
54
}
55
55
close ( ) ;
56
56
} ) ;
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ module.exports.exportConfig = async () => {
124
124
module . exports . importConfig = async ( obj ) => {
125
125
let configValues = obj . config ;
126
126
for ( let key in configValues ) {
127
- if ( configDefaults [ key ] === undefined ) return false ;
127
+ if ( configDefaults [ key ] === undefined ) continue
128
128
if ( key === "password" ) continue ;
129
129
130
130
const validate = await this . validateInput ( key , configValues [ key ] ) ;
You can’t perform that action at this time.
0 commit comments