Components\Controls\OverviewStatusCard.razor.cs (11)
57_properties = [new(KnownProperties.Resource.DisplayName, Loc[nameof(ResourceStrings.ResourcesDetailsDisplayNameProperty)], Resource.DisplayName, StatusPropertyKind.DisplayName)];
61_properties.Add(new(KnownProperties.Resource.State, Loc[nameof(ResourceStrings.ResourcesDetailsStateProperty)], stateText, StatusPropertyKind.State));
70_properties.Add(new(KnownProperties.Resource.HealthState, Loc[nameof(ResourceStrings.ResourcesDetailsHealthStateProperty)], health.ToString(), StatusPropertyKind.HealthState));
81Loc[nameof(ResourceStrings.ResourcePersistentLifetime)], StatusPropertyKind.Lifetime,
96exitCode is 0 ? StatusPropertyKind.Text : StatusPropertyKind.ExitError));
100_properties.Add(new(KnownProperties.Resource.Source, Loc[nameof(ResourceStrings.ResourcesSourceColumnHeader)], source.Value, StatusPropertyKind.Source,
115private sealed record StatusProperty(string PropertyKey, string Name, string Text, StatusPropertyKind Kind = StatusPropertyKind.Text,
119string? IPropertyGridItem.Value => Kind == StatusPropertyKind.Text ? Text : null;
120string? IPropertyGridItem.ValueTooltip => Kind == StatusPropertyKind.Source ? Tooltip : null;