From 04da0dddf3b377f44a7a6f82ffb9639e6d06d0a0 Mon Sep 17 00:00:00 2001 From: TUAILLON Date: Mon, 4 Dec 2023 09:29:07 +0100 Subject: [PATCH] fix #2675 - Make module version ediatable on edge template screen --- .../EdgeModels/EdgeModule/ModuleDialog.razor | 9 ++++++++ .../EdgeModels/CreateEdgeModelsPage.razor | 23 +++++++++++-------- .../IoTHub.Portal.Server.csproj | 2 +- src/IoTHub.Portal.sln | 1 + 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialog.razor index 5340919f3..90cae45b8 100644 --- a/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialog.razor +++ b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialog.razor @@ -25,6 +25,14 @@ For="@(() => Module.ImageURI)" Required="true"/> + + + @if (Portal.CloudProvider.Equals(CloudProviders.Azure)) { @@ -120,6 +128,7 @@ Module.ModuleName = currentModuleName; Module.ImageURI = currentImageUri; Module.ContainerCreateOptions = currentContainerCreateOptions; + Module.Version = currentNumVersion; if (Portal.CloudProvider.Equals(CloudProviders.Azure)) { Module.Version = " "; } else { Module.Version = currentNumVersion; } diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor b/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor index 9eac4b5d8..68640c79a 100644 --- a/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor +++ b/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor @@ -114,16 +114,16 @@ - - - - + + + + Module name Image URI - See detail - Delete + Version + Actions @@ -132,11 +132,14 @@ - - Detail + + - - + +
+ Detail + +
diff --git a/src/IoTHub.Portal.Server/IoTHub.Portal.Server.csproj b/src/IoTHub.Portal.Server/IoTHub.Portal.Server.csproj index 999b95613..550bd6aad 100644 --- a/src/IoTHub.Portal.Server/IoTHub.Portal.Server.csproj +++ b/src/IoTHub.Portal.Server/IoTHub.Portal.Server.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/IoTHub.Portal.sln b/src/IoTHub.Portal.sln index fd250ee6d..70472ee3d 100644 --- a/src/IoTHub.Portal.sln +++ b/src/IoTHub.Portal.sln @@ -1,3 +1,4 @@ + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.1.31911.260