fix(adminui): gate Galaxy picker so it doesn't clobber alias FullName on edit; refresh gateways (review)
This commit is contained in:
@@ -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,14 +82,17 @@
|
|||||||
<ValidationMessage For="@(() => _form.FullName)" />
|
<ValidationMessage For="@(() => _form.FullName)" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<DriverTagPicker @bind-Visible="_showPicker"
|
@if (_showPicker)
|
||||||
Title="Galaxy address"
|
{
|
||||||
CurrentAddress="@_form.FullName"
|
<DriverTagPicker @bind-Visible="_showPicker"
|
||||||
OnPickAddress="@OnAddressPicked">
|
Title="Galaxy address"
|
||||||
<GalaxyAddressPickerBody CurrentAddress="@_form.FullName"
|
CurrentAddress="@_form.FullName"
|
||||||
CurrentAddressChanged="@((s) => _form.FullName = s)"
|
OnPickAddress="@OnAddressPicked">
|
||||||
GetConfigJson="@(() => _selectedGatewayConfig)" />
|
<GalaxyAddressPickerBody CurrentAddress="@_form.FullName"
|
||||||
</DriverTagPicker>
|
CurrentAddressChanged="@((s) => _form.FullName = s)"
|
||||||
|
GetConfigJson="@(() => _selectedGatewayConfig)" />
|
||||||
|
</DriverTagPicker>
|
||||||
|
}
|
||||||
|
|
||||||
@if (!string.IsNullOrWhiteSpace(_error))
|
@if (!string.IsNullOrWhiteSpace(_error))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user