11 references to CommandViewModelState
Aspire.Dashboard (11)
Components\Controls\ResourceActions.razor.cs (1)
82
_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
339
_highlightedCommands.AddRange(PageViewModel.SelectedResource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
460
if (command.IsHighlighted && command.State !=
CommandViewModelState
.Hidden)
Model\ResourceMenuItems.cs (2)
99
.Where(c => c.State !=
CommandViewModelState
.Hidden)
116
IsDisabled = command.State ==
CommandViewModelState
.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
167
public
CommandViewModelState
State { get; }
176
public CommandViewModel(string name,
CommandViewModelState
state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
129
static
CommandViewModelState
MapState(ResourceCommandState state)
133
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
134
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
135
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,