13 references to CommandViewModelState
Aspire.Dashboard (13)
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\ConsoleLogs.razor.cs (3)
288_highlightedCommands.AddRange(PageViewModel.SelectedResource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands)); 291var menuCommands = PageViewModel.SelectedResource.Commands.Where(c => !_highlightedCommands.Contains(c) && c.State != CommandViewModelState.Hidden).ToList(); 304IsDisabled = command.State == CommandViewModelState.Disabled
Components\Pages\Resources.razor.cs (1)
274if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Model\ResourceViewModel.cs (2)
154public CommandViewModelState State { get; } 163public CommandViewModel(string name, CommandViewModelState state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
112static CommandViewModelState MapState(ResourceCommandState state) 116ResourceCommandState.Enabled => CommandViewModelState.Enabled, 117ResourceCommandState.Disabled => CommandViewModelState.Disabled, 118ResourceCommandState.Hidden => CommandViewModelState.Hidden,