28 references to CommandViewModelState
Aspire.Dashboard (13)
Components\Controls\ResourceActions.razor.cs (1)
58_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
570_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
623if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Components\Pages\Terminals.razor.cs (1)
259_highlightedCommands.AddRange(resource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden)
Model\ResourceMenuBuilder.cs (2)
288.Where(c => c.State != CommandViewModelState.Hidden) 342IsDisabled = _dashboardClient.IsReadOnly || command.State == CommandViewModelState.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
288public CommandViewModelState State { get; } 298public CommandViewModel(string name, CommandViewModelState state, string displayName, string displayDescription, string confirmationMessage, ImmutableArray<InteractionInput> argumentInputs, bool isHighlighted, string iconName, IconVariant iconVariant)
Model\TelemetryExportService.cs (1)
772.Where(c => c.State == CommandViewModelState.Enabled)
ServiceClient\Partials.cs (4)
137static CommandViewModelState MapState(ResourceCommandState state) 141ResourceCommandState.Enabled => CommandViewModelState.Enabled, 142ResourceCommandState.Disabled => CommandViewModelState.Disabled, 143ResourceCommandState.Hidden => CommandViewModelState.Hidden,
Aspire.Dashboard.Components.Tests (8)
Controls\ResourceDetailsTests.cs (3)
733CommandViewModelState.Enabled, 779CommandViewModelState.Enabled, 825CommandViewModelState.Enabled,
Model\DashboardCommandExecutorTests.cs (1)
81state: CommandViewModelState.Enabled,
Pages\ConsoleLogsTests.cs (3)
793commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]); 860CommandViewModelState.Enabled, 902commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (1)
220CommandViewModelState.Enabled,
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
1511CommandViewModelState.Enabled,
Model\DashboardCommandExecutorTests.cs (1)
309CommandViewModelState.Enabled,
Model\ResourceMenuBuilderTests.cs (5)
332CommandViewModelState.Enabled, 342CommandViewModelState.Enabled, 380CommandViewModelState.Enabled, 425CommandViewModelState.Enabled, 468CommandViewModelState.Enabled,