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
// 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;
@@ -82,14 +82,17 @@
<ValidationMessage For="@(() => _form.FullName)" />
</div>
<DriverTagPicker @bind-Visible="_showPicker"
Title="Galaxy address"
CurrentAddress="@_form.FullName"
OnPickAddress="@OnAddressPicked">
<GalaxyAddressPickerBody CurrentAddress="@_form.FullName"
CurrentAddressChanged="@((s) => _form.FullName = s)"
GetConfigJson="@(() => _selectedGatewayConfig)" />
</DriverTagPicker>
@if (_showPicker)
{
<DriverTagPicker @bind-Visible="_showPicker"
Title="Galaxy address"
CurrentAddress="@_form.FullName"
OnPickAddress="@OnAddressPicked">
<GalaxyAddressPickerBody CurrentAddress="@_form.FullName"
CurrentAddressChanged="@((s) => _form.FullName = s)"
GetConfigJson="@(() => _selectedGatewayConfig)" />
</DriverTagPicker>
}
@if (!string.IsNullOrWhiteSpace(_error))
{