10 references to CommandViewModelState
Aspire.Dashboard (10)
Components\Controls\ResourceActions.razor.cs (3)
126_highlightedCommands.AddRange(Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(MaxHighlightedCount)); 129var menuCommands = Commands.Where(c => !_highlightedCommands.Contains(c) && c.State != CommandViewModelState.Hidden).ToList(); 144IsDisabled = command.State == CommandViewModelState.Disabled
Components\Pages\Resources.razor.cs (1)
235if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Model\ResourceViewModel.cs (2)
141public CommandViewModelState State { get; } 150public CommandViewModel(string name, CommandViewModelState state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
105static CommandViewModelState MapState(ResourceCommandState state) 109ResourceCommandState.Enabled => CommandViewModelState.Enabled, 110ResourceCommandState.Disabled => CommandViewModelState.Disabled, 111ResourceCommandState.Hidden => CommandViewModelState.Hidden,