feat(uns): surface DriverType to the TagModal driver dropdown (F-uns-1 T1)

This commit is contained in:
Joseph Doherty
2026-06-09 09:16:07 -04:00
parent cc53fc8feb
commit d9dbd7917a
5 changed files with 84 additions and 10 deletions
@@ -43,7 +43,7 @@
<label class="form-label" for="tag-driver">Driver instance</label>
<InputSelect id="tag-driver" @bind-Value="_form.DriverInstanceId" class="form-select form-select-sm">
<option value="">— pick a driver —</option>
@foreach (var (id, display) in Drivers)
@foreach (var (id, display, _) in Drivers)
{
<option value="@id">@display</option>
}
@@ -125,7 +125,7 @@
[Parameter] public TagEditDto? Existing { get; set; }
/// <summary>The candidate drivers — scoped to the equipment's cluster by the host — as <c>(Id, Display)</c> pairs.</summary>
[Parameter] public IReadOnlyList<(string Id, string Display)> Drivers { get; set; } = Array.Empty<(string, string)>();
[Parameter] public IReadOnlyList<(string Id, string Display, string DriverType)> Drivers { get; set; } = Array.Empty<(string, string, string)>();
/// <summary>Raised after a successful create/save so the host can refresh the equipment's children and close.</summary>
[Parameter] public EventCallback OnSaved { get; set; }