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)
623
if (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)
342
IsDisabled = _dashboardClient.IsReadOnly || command.State ==
CommandViewModelState
.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
288
public
CommandViewModelState
State { get; }
298
public 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)
137
static
CommandViewModelState
MapState(ResourceCommandState state)
141
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
142
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
143
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,
Aspire.Dashboard.Components.Tests (8)
Controls\ResourceDetailsTests.cs (3)
733
CommandViewModelState
.Enabled,
779
CommandViewModelState
.Enabled,
825
CommandViewModelState
.Enabled,
Model\DashboardCommandExecutorTests.cs (1)
81
state:
CommandViewModelState
.Enabled,
Pages\ConsoleLogsTests.cs (3)
793
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
860
CommandViewModelState
.Enabled,
902
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (1)
220
CommandViewModelState
.Enabled,
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
1511
CommandViewModelState
.Enabled,
Model\DashboardCommandExecutorTests.cs (1)
309
CommandViewModelState
.Enabled,
Model\ResourceMenuBuilderTests.cs (5)
332
CommandViewModelState
.Enabled,
342
CommandViewModelState
.Enabled,
380
CommandViewModelState
.Enabled,
425
CommandViewModelState
.Enabled,
468
CommandViewModelState
.Enabled,