continue configuration
This commit is contained in:
parent
d6b30e11b2
commit
b4025cf084
@ -73,6 +73,7 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
List<SettingsTile> commonSettings = [];
|
||||
List<SettingsTile> encryptConfigSettings = [];
|
||||
List<SettingsTile> hostConfigSettings = [];
|
||||
List<SettingsTile> remoteConfigSettings = [];
|
||||
List<SettingsTile> remoteMountSettings = [];
|
||||
List<SettingsTile> s3ConfigSettings = [];
|
||||
List<SettingsTile> siaConfigSettings = [];
|
||||
@ -200,6 +201,53 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
);
|
||||
}
|
||||
});
|
||||
} else if (key == "RemoteConfig") {
|
||||
value.forEach((subKey, subValue) {
|
||||
if (subKey == "ApiPort") {
|
||||
_addIntSetting(
|
||||
remoteConfigSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
} else if (subKey == "EncryptionToken") {
|
||||
_addPasswordSetting(
|
||||
remoteConfigSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
} else if (subKey == "HostNameOrIp") {
|
||||
_addStringSetting(
|
||||
remoteConfigSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
Icons.computer,
|
||||
);
|
||||
} else if (subKey == "MaxConnections") {
|
||||
_addIntSetting(
|
||||
remoteConfigSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
} else if (subKey == "ReceiveTimeoutMs") {
|
||||
_addIntSetting(
|
||||
remoteConfigSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
} else if (subKey == "SendTimeoutMs") {
|
||||
_addIntSetting(
|
||||
remoteConfigSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
}
|
||||
});
|
||||
} else if (key == "RemoteMount") {
|
||||
value.forEach((subKey, subValue) {
|
||||
if (subKey == "ApiPort") {
|
||||
@ -330,6 +378,11 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
title: const Text('Host Config'),
|
||||
tiles: hostConfigSettings,
|
||||
),
|
||||
if (remoteConfigSettings.isNotEmpty)
|
||||
SettingsSection(
|
||||
title: const Text('Remote Config'),
|
||||
tiles: remoteConfigSettings,
|
||||
),
|
||||
if (remoteMountSettings.isNotEmpty)
|
||||
SettingsSection(
|
||||
title: const Text('Remote Mount'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user