refactor
This commit is contained in:
@@ -124,7 +124,7 @@ String getBaseUri() {
|
||||
|
||||
List<Validator> getSettingValidators(String settingPath) {
|
||||
switch (settingPath) {
|
||||
case 'ApiAuth':
|
||||
case 'ApiPassword':
|
||||
return [notEmptyValidator];
|
||||
case 'DatabaseType':
|
||||
return [(value) => constants.databaseTypeList.contains(value)];
|
||||
|
@@ -346,7 +346,7 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
|
||||
widget.settings.forEach((key, value) {
|
||||
switch (key) {
|
||||
case 'ApiAuth':
|
||||
case 'ApiPassword':
|
||||
{
|
||||
_addPasswordSetting(
|
||||
commonSettings,
|
||||
|
Reference in New Issue
Block a user