fix(adminui): one save-error area per driver/device modal; refusal chips print the full message (#847)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user