diff --git a/app/MindWork AI Studio/Pages/Information.razor b/app/MindWork AI Studio/Pages/Information.razor index 94f333a2..fd6b4cf0 100644 --- a/app/MindWork AI Studio/Pages/Information.razor +++ b/app/MindWork AI Studio/Pages/Information.razor @@ -64,13 +64,17 @@ @foreach (var plug in this.configPlugins) { - + +
+ + @plug.Name +
@T("Configuration plugin ID:") @plug.Id
-
+ }
@@ -97,20 +101,22 @@ @foreach (var env in EnterpriseEnvironmentService.CURRENT_ENVIRONMENTS.Where(e => e.IsActive)) { - + +
+ + @T("Pending configuration") +
@T("Enterprise configuration ID:") @env.ConfigurationId
-
- -
+
@T("Configuration server:") @env.ConfigurationServerUrl
- + }
@@ -137,30 +143,39 @@ @foreach (var env in EnterpriseEnvironmentService.CURRENT_ENVIRONMENTS.Where(e => e.IsActive)) { - + var matchingPlugin = this.configPlugins.FirstOrDefault(p => p.Id == env.ConfigurationId); + +
+ @if (matchingPlugin is not null) + { + + @matchingPlugin.Name + } + else + { + + @T("Pending configuration") + } +
@T("Enterprise configuration ID:") @env.ConfigurationId
-
- -
+
@T("Configuration server:") @env.ConfigurationServerUrl
- - } - @foreach (var plug in this.configPlugins) - { - -
- - @T("Configuration plugin ID:") @plug.Id - -
-
+ @if (matchingPlugin is not null) + { +
+ + @T("Configuration plugin ID:") @matchingPlugin.Id + +
+ } + }