26 references to CommandViewModelState
Aspire.Dashboard (12)
Components\Controls\ResourceActions.razor.cs (1)
68_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
784_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
566if (command.IsHighlighted && command.State != CommandViewModelState.Hidden)
Model\ResourceMenuBuilder.cs (2)
260.Where(c => c.State != CommandViewModelState.Hidden) 314IsDisabled = _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)
770.Where(c => c.State == CommandViewModelState.Enabled)
ServiceClient\Partials.cs (4)
125static CommandViewModelState MapState(ResourceCommandState state) 129ResourceCommandState.Enabled => CommandViewModelState.Enabled, 130ResourceCommandState.Disabled => CommandViewModelState.Disabled, 131ResourceCommandState.Hidden => CommandViewModelState.Hidden,
Aspire.Dashboard.Components.Tests (7)
Controls\ResourceDetailsTests.cs (3)
733CommandViewModelState.Enabled, 779CommandViewModelState.Enabled, 825CommandViewModelState.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)
159CommandViewModelState.Enabled,
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
834CommandViewModelState.Enabled,
Model\DashboardCommandExecutorTests.cs (1)
242CommandViewModelState.Enabled,
Model\ResourceMenuBuilderTests.cs (5)
290CommandViewModelState.Enabled, 300CommandViewModelState.Enabled, 337CommandViewModelState.Enabled, 381CommandViewModelState.Enabled, 423CommandViewModelState.Enabled,