13 references to CommandViewModelState
Aspire.Dashboard (11)
Components\Controls\ResourceActions.razor.cs (1)
86
_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
350
_highlightedCommands.AddRange(PageViewModel.SelectedResource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
468
if (command.IsHighlighted && command.State !=
CommandViewModelState
.Hidden)
Model\ResourceMenuItems.cs (2)
109
.Where(c => c.State !=
CommandViewModelState
.Hidden)
126
IsDisabled = command.State ==
CommandViewModelState
.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
181
public
CommandViewModelState
State { get; }
191
public CommandViewModel(string name,
CommandViewModelState
state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
113
static
CommandViewModelState
MapState(ResourceCommandState state)
117
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
118
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
119
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,
Aspire.Dashboard.Components.Tests (2)
Pages\ConsoleLogsTests.cs (2)
295
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
359
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);