-
Notifications
You must be signed in to change notification settings - Fork 926
Add details column to trace view, remove status badge and put counter badge on resource name #1788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
2956d12
5cb939a
465b920
a729637
adf0537
97fefb8
8d98532
a22a8dc
e4ff870
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @using Aspire.Dashboard.Model | ||
| @using Aspire.Dashboard.Resources | ||
| @inject IStringLocalizer<Columns> Loc | ||
|
|
||
| @if (Resource is { State: ResourceStates.ExitedState /* containers */ or ResourceStates.FinishedState /* executables */ }) | ||
| { | ||
| if (Resource.TryGetExitCode(out int exitCode) && exitCode is not 0) | ||
| { | ||
| <!-- process completed unexpectedly, hence the non-zero code. this is almost certainly an error, so warn users --> | ||
| <FluentIcon Title="@string.Format(Loc[Columns.StateColumnResourceExitedUnexpectedly], Resource.ResourceType, exitCode)" | ||
| Icon="Icons.Filled.Size16.ErrorCircle" | ||
| Color="Color.Error" | ||
| Class="severity-icon"/> | ||
| } | ||
| else | ||
| { | ||
| <!-- process completed, which may not have been unexpected --> | ||
| <FluentIcon Title="@string.Format(Loc[Columns.StateColumnResourceExited], Resource.ResourceType)" | ||
| Icon="Icons.Filled.Size16.Warning" | ||
| Color="Color.Warning" | ||
| Class="severity-icon"/> | ||
| } | ||
| } | ||
| else | ||
| { | ||
| <FluentIcon Icon="Icons.Filled.Size16.CheckmarkCircle" | ||
| Color="Color.Success" | ||
| Class="severity-icon"/> | ||
| } | ||
|
|
||
| @Resource.State | ||
|
|
||
| @code { | ||
| [Parameter, EditorRequired] | ||
| public required ResourceViewModel Resource { get; set; } | ||
| } |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.