fix(adminui): gate Galaxy picker so it doesn't clobber alias FullName on edit; refresh gateways (review)

This commit is contained in:
Joseph Doherty
2026-06-11 21:45:55 -04:00
parent d19271fff8
commit 299eaa461c
2 changed files with 13 additions and 9 deletions
@@ -415,9 +415,10 @@ else
// --- Alias-tag handlers (mirror the tag handlers; aliases live in the same _tags list + delete the // --- 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). --- // 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; _tagError = null;
_gateways = await Svc.LoadGalaxyGatewaysForEquipmentAsync(EquipmentId!);
_aliasModalIsNew = true; _aliasModalIsNew = true;
_aliasModalExisting = null; _aliasModalExisting = null;
_aliasModalVisible = true; _aliasModalVisible = true;
@@ -82,6 +82,8 @@
<ValidationMessage For="@(() => _form.FullName)" /> <ValidationMessage For="@(() => _form.FullName)" />
</div> </div>
@if (_showPicker)
{
<DriverTagPicker @bind-Visible="_showPicker" <DriverTagPicker @bind-Visible="_showPicker"
Title="Galaxy address" Title="Galaxy address"
CurrentAddress="@_form.FullName" CurrentAddress="@_form.FullName"
@@ -90,6 +92,7 @@
CurrentAddressChanged="@((s) => _form.FullName = s)" CurrentAddressChanged="@((s) => _form.FullName = s)"
GetConfigJson="@(() => _selectedGatewayConfig)" /> GetConfigJson="@(() => _selectedGatewayConfig)" />
</DriverTagPicker> </DriverTagPicker>
}
@if (!string.IsNullOrWhiteSpace(_error)) @if (!string.IsNullOrWhiteSpace(_error))
{ {