@@ -60,4 +60,4 @@ Copyright (c) 2024 Starion Group S.A.
-
\ No newline at end of file
+
diff --git a/COMETwebapp/Components/ParameterEditor/ParameterEditorBody.razor.cs b/COMETwebapp/Components/ParameterEditor/ParameterEditorBody.razor.cs
index 493d74ca..c5063fdc 100644
--- a/COMETwebapp/Components/ParameterEditor/ParameterEditorBody.razor.cs
+++ b/COMETwebapp/Components/ParameterEditor/ParameterEditorBody.razor.cs
@@ -46,7 +46,8 @@ protected override void OnViewModelAssigned()
{
base.OnViewModelAssigned();
- this.Disposables.Add(this.WhenAnyValue(x => x.ViewModel.OptionSelector.SelectedOption,
+ this.Disposables.Add(this.WhenAnyValue(
+ x => x.ViewModel.OptionSelector.SelectedOption,
x => x.ViewModel.ParameterTypeSelector.SelectedParameterType,
x => x.ViewModel.ElementSelector.SelectedElementBase,
x => x.ViewModel.IsOwnedParameters)
@@ -99,6 +100,7 @@ private void UpdateUrl()
additionalParameters["owned"] = this.ViewModel.IsOwnedParameters.ToString();
}
+ this.ViewModel.ApplyFilters();
this.UpdateUrlWithParameters(additionalParameters, WebAppConstantValues.ParameterEditorPage);
}
}
diff --git a/COMETwebapp/Components/ParameterEditor/ParameterTable.razor b/COMETwebapp/Components/ParameterEditor/ParameterTable.razor
index 77388896..0005ed75 100644
--- a/COMETwebapp/Components/ParameterEditor/ParameterTable.razor
+++ b/COMETwebapp/Components/ParameterEditor/ParameterTable.razor
@@ -66,7 +66,7 @@
-// Copyright (c) 2023-2024 Starion Group S.A.
+//
+// Copyright (c) 2024 Starion Group S.A.
//
-// Authors: Sam Gerené, Alex Vorobiev, Alexander van Delft, Jaime Bernar, Théate Antoine
+// Authors: Sam Gerené, Alex Vorobiev, Alexander van Delft, Jaime Bernar, Théate Antoine, João Rua
//
-// This file is part of CDP4-COMET WEB Community Edition
-// The CDP4-COMET WEB Community Edition is the Starion Web Application implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET WEB Community Edition
+// The COMET WEB Community Edition is the Starion Group Web Application implementation of ECSS-E-TM-10-25 Annex A and Annex C.
//
-// The CDP4-COMET WEB Community Edition is free software; you can redistribute it and/or
+// The COMET WEB Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4-COMET WEB Community Edition is distributed in the hope that it will be useful,
+// The COMET WEB Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Affero General Public License for more details.
@@ -26,8 +26,7 @@ namespace COMETwebapp.Components.ParameterEditor
{
using System.Collections.ObjectModel;
- using CDP4Common.EngineeringModelData;
- using CDP4Common.SiteDirectoryData;
+ using COMET.Web.Common.Extensions;
using COMETwebapp.Comparer;
using COMETwebapp.ViewModels.Components.ParameterEditor;
@@ -46,14 +45,14 @@ namespace COMETwebapp.Components.ParameterEditor
public partial class ParameterTable
{
///
- /// to close the popup editor
+ /// The
///
- private EventCallback closeEditor;
+ private readonly ParameterBaseRowViewModelComparer comparer = new();
///
- /// The
+ /// to close the popup editor
///
- private ParameterBaseRowViewModelComparer comparer = new();
+ private EventCallback closeEditor;
///
/// The sorted collection of
@@ -80,9 +79,10 @@ protected override void OnInitialized()
base.OnInitialized();
this.Disposables.Add(this.WhenAnyValue(x => x.ViewModel.IsOnEditMode)
- .Subscribe(_ => this.InvokeAsync(this.StateHasChanged)));
+ .SubscribeAsync(_ => this.InvokeAsync(this.StateHasChanged)));
this.Disposables.Add(this.ViewModel.Rows.Connect()
+ .AutoRefresh()
.Sort(this.comparer)
.Bind(out this.sortedCollection)
.Subscribe(_ => this.InvokeAsync(this.StateHasChanged)));
@@ -93,7 +93,7 @@ protected override void OnInitialized()
///
/// Customizes the table rows
///
- /// The
+ /// The
private void OnCustomizeElement(GridCustomizeElementEventArgs e)
{
if (e.ElementType == GridElementType.DataRow)
diff --git a/COMETwebapp/Components/SubscriptionDashboard/SubscriptionDashboardBody.razor.cs b/COMETwebapp/Components/SubscriptionDashboard/SubscriptionDashboardBody.razor.cs
index e9eea248..43047ae8 100644
--- a/COMETwebapp/Components/SubscriptionDashboard/SubscriptionDashboardBody.razor.cs
+++ b/COMETwebapp/Components/SubscriptionDashboard/SubscriptionDashboardBody.razor.cs
@@ -98,6 +98,7 @@ private void UpdateUrl()
additionalParameters[QueryKeys.ParameterKey] = this.ViewModel.ParameterTypeSelector.SelectedParameterType.Iid.ToShortGuid();
}
+ this.ViewModel.UpdateTables();
this.UpdateUrlWithParameters(additionalParameters, WebAppConstantValues.SubscriptionDashboardPage);
}
diff --git a/COMETwebapp/Components/SystemRepresentation/SystemRepresentationBody.razor.cs b/COMETwebapp/Components/SystemRepresentation/SystemRepresentationBody.razor.cs
index be0e6d28..8ad765ca 100644
--- a/COMETwebapp/Components/SystemRepresentation/SystemRepresentationBody.razor.cs
+++ b/COMETwebapp/Components/SystemRepresentation/SystemRepresentationBody.razor.cs
@@ -77,6 +77,7 @@ private void UpdateUrl()
additionalParameters[QueryKeys.OptionKey] = this.ViewModel.OptionSelector.SelectedOption.Iid.ToShortGuid();
}
+ this.ViewModel.ApplyFilters();
this.UpdateUrlWithParameters(additionalParameters, WebAppConstantValues.SystemRepresentationPage);
}
}
diff --git a/COMETwebapp/Components/Tabs/TabsPanelComponent.razor b/COMETwebapp/Components/Tabs/TabsPanelComponent.razor
index c80771de..c9ffc4a0 100644
--- a/COMETwebapp/Components/Tabs/TabsPanelComponent.razor
+++ b/COMETwebapp/Components/Tabs/TabsPanelComponent.razor
@@ -70,7 +70,8 @@
+ CurrentThing="this.Panel.CurrentTab.ObjectOfInterest as Thing"
+ Id="@(this.Panel.CurrentTab.Id)"/>
}
diff --git a/COMETwebapp/Components/Viewer/ViewerBody.razor.cs b/COMETwebapp/Components/Viewer/ViewerBody.razor.cs
index febceb2a..b48b6a50 100644
--- a/COMETwebapp/Components/Viewer/ViewerBody.razor.cs
+++ b/COMETwebapp/Components/Viewer/ViewerBody.razor.cs
@@ -138,6 +138,7 @@ private void UpdateUrl()
additionalParameters["option"] = this.ViewModel.OptionSelector.SelectedOption.Iid.ToShortGuid();
}
+ this.ViewModel.InitializeViewModel();
this.UpdateUrlWithParameters(additionalParameters, WebAppConstantValues.ViewerPage);
}
}
diff --git a/COMETwebapp/Model/TabbedApplicationInformation.cs b/COMETwebapp/Model/TabbedApplicationInformation.cs
index c80f172d..0179bec0 100644
--- a/COMETwebapp/Model/TabbedApplicationInformation.cs
+++ b/COMETwebapp/Model/TabbedApplicationInformation.cs
@@ -42,6 +42,7 @@ public TabbedApplicationInformation(IApplicationBaseViewModel applicationBaseVie
this.ApplicationBaseViewModel = applicationBaseViewModel;
this.ComponentType = componentType;
this.ObjectOfInterest = objectOfInterest;
+ this.Id = Guid.NewGuid();
}
///