@inherits ComponentBase @using Insight.Agent.Enums;
Timestamp Category Status Message
@if (context?.Timestamp is not null) { @context?.Timestamp.Value.ToLocalTime().ToString("dd.MM.yyyy HH:mm:ss") //@context?.Timestamp } @context?.Category @{ var color = Color.Inherit; if (context?.Status is not null) { color = Enum.Parse(context.Status, true) switch { Insight.Agent.Enums.StatusEnum.Information => Color.Success, Insight.Agent.Enums.StatusEnum.Warning => Color.Warning, Insight.Agent.Enums.StatusEnum.Error => Color.Error, _ => Color.Inherit }; } @context?.Status } @context?.Message
Clear Ok None @foreach (CategoryEnum category in Enum.GetValues(typeof(CategoryEnum))) { @category } None @foreach (StatusEnum state in Enum.GetValues(typeof(StatusEnum))) { @state } Reset Done