Files
lmxopcua/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/RefusalChip.razor
T

21 lines
1.1 KiB
Plaintext

@* A failed Test Connect / browse-open outcome (lmxopcua#847). The chip carries only a short status word; the
full refusal text is rendered READABLY under it — wrapping, normal case, selectable — instead of being cut
to a few characters inside the (uppercase, inline) chip with the real reason only in a hover tooltip. A
secret-reference refusal ("SEC…") was unreadable that way, and a tooltip cannot be copied from.
Renders as an inline column, so it drops into the existing d-flex rows beside the button unchanged. *@
<span class="d-inline-flex flex-column align-items-start" style="min-width:0;max-width:100%">
<span class="chip chip-bad">@Label</span>
@if (!string.IsNullOrWhiteSpace(Message))
{
<span class="small text-danger text-break mt-1" style="white-space:pre-wrap;user-select:text">@Message</span>
}
</span>
@code {
/// <summary>The short chip text (default <c>Failed</c>).</summary>
[Parameter] public string Label { get; set; } = "Failed";
/// <summary>The full refusal / failure message, shown untruncated under the chip.</summary>
[Parameter] public string? Message { get; set; }
}