From 299eaa461c42d27184c3d5b052ba1f1d1df6699e Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 11 Jun 2026 21:45:55 -0400 Subject: [PATCH] fix(adminui): gate Galaxy picker so it doesn't clobber alias FullName on edit; refresh gateways (review) --- .../Components/Pages/Uns/EquipmentPage.razor | 3 ++- .../Components/Shared/Uns/AliasTagModal.razor | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/EquipmentPage.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/EquipmentPage.razor index 96236d97..fc0a46ff 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/EquipmentPage.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/EquipmentPage.razor @@ -415,9 +415,10 @@ else // --- Alias-tag handlers (mirror the tag handlers; aliases live in the same _tags list + delete the // same way, so only the create/edit modal differs — it embeds the Galaxy live-browse picker). --- - private void OpenAddAlias() + private async Task OpenAddAlias() { _tagError = null; + _gateways = await Svc.LoadGalaxyGatewaysForEquipmentAsync(EquipmentId!); _aliasModalIsNew = true; _aliasModalExisting = null; _aliasModalVisible = true; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/AliasTagModal.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/AliasTagModal.razor index 431ed521..d6b3bc9f 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/AliasTagModal.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/AliasTagModal.razor @@ -82,14 +82,17 @@ - - - + @if (_showPicker) + { + + + + } @if (!string.IsNullOrWhiteSpace(_error)) {