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)
468if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Model\ResourceMenuItems.cs (2)
109.Where(c => c.State != CommandViewModelState.Hidden) 126IsDisabled = command.State == CommandViewModelState.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
181public CommandViewModelState State { get; } 191public CommandViewModel(string name, CommandViewModelState state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
113static CommandViewModelState MapState(ResourceCommandState state) 117ResourceCommandState.Enabled => CommandViewModelState.Enabled, 118ResourceCommandState.Disabled => CommandViewModelState.Disabled, 119ResourceCommandState.Hidden => CommandViewModelState.Hidden,
Aspire.Dashboard.Components.Tests (2)
Pages\ConsoleLogsTests.cs (2)
295commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]); 359commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);