fix(adminui): one save-error area per driver/device modal; refusal chips print the full message (#847)

This commit is contained in:
Joseph Doherty
2026-11-11 03:41:56 -05:00
parent 01a2013ea3
commit 3b1b32f0c1
14 changed files with 175 additions and 43 deletions
@@ -63,7 +63,7 @@
</button>
@if (_openError is not null)
{
<span class="chip chip-bad" title="@_openError">@Truncate(_openError, 70)</span>
<RefusalChip Message="@_openError" />
}
</div>
}
@@ -845,7 +845,6 @@
private string TargetLabel()
=> string.IsNullOrEmpty(_groupPrefix) ? "(device root)" : _groupPrefix!;
private static string Truncate(string s, int max) => s.Length > max ? s[..max] + "…" : s;
public ValueTask DisposeAsync()
{