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)
460if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Model\ResourceMenuItems.cs (2)
99.Where(c => c.State != CommandViewModelState.Hidden) 116IsDisabled = command.State == CommandViewModelState.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
167public CommandViewModelState State { get; } 176public CommandViewModel(string name, CommandViewModelState state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
129static CommandViewModelState MapState(ResourceCommandState state) 133ResourceCommandState.Enabled => CommandViewModelState.Enabled, 134ResourceCommandState.Disabled => CommandViewModelState.Disabled, 135ResourceCommandState.Hidden => CommandViewModelState.Hidden,