diff --git a/web/repertory/lib/widgets/mount_settings.dart b/web/repertory/lib/widgets/mount_settings.dart index 3fb130d0..0b5da7c6 100644 --- a/web/repertory/lib/widgets/mount_settings.dart +++ b/web/repertory/lib/widgets/mount_settings.dart @@ -73,6 +73,7 @@ class _MountSettingsWidgetState extends State { List commonSettings = []; List encryptConfigSettings = []; List hostConfigSettings = []; + List remoteConfigSettings = []; List remoteMountSettings = []; List s3ConfigSettings = []; List siaConfigSettings = []; @@ -200,6 +201,53 @@ class _MountSettingsWidgetState extends State { ); } }); + } 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 { 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'),