Files
PLDpro.Web/Components/shared/StatusChip.razor
Erik cae77ef1e3
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m15s
DMS Layout mit Fehlern
2026-02-09 21:50:24 +01:00

32 lines
788 B
Plaintext

@using Pldpro.Web.UI.Models
@using MudBlazor
<MudChip T="string"
Value="@Text"
Color="@Color"
Variant="Variant.Filled"
Label="true"
DisableRipple="true"
Clickable="false">
@Text
</MudChip>
@code {
[Parameter] public DocumentStatus Status { get; set; }
private string Text => Status switch
{
DocumentStatus.Eingegangen => "Eingegangen",
DocumentStatus.Freigegeben => "Freigegeben",
DocumentStatus.Bezahlt => "Bezahlt",
_ => Status.ToString()
};
private Color Color => Status switch
{
DocumentStatus.Eingegangen => Color.Info,
DocumentStatus.Freigegeben => Color.Success,
DocumentStatus.Bezahlt => Color.Primary,
_ => Color.Default
};
}