15 references to CommandViewModelState
Aspire.Dashboard (13)
Components\Controls\ResourceActions.razor.cs (1)
103
_highlightedCommands.AddRange(Resource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(MaxHighlightedCount));
Components\Pages\ConsoleLogs.razor.cs (1)
499
_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (1)
537
if (command.IsHighlighted && command.State !=
CommandViewModelState
.Hidden)
Components_Controls_ResourceActions_razor.g.cs (1)
262
highlightedCommand.State ==
CommandViewModelState
.Disabled || IsCommandExecuting(Resource, highlightedCommand)
Components_Pages_ConsoleLogs_razor.g.cs (1)
560
command.State ==
CommandViewModelState
.Disabled || DashboardCommandExecutor.IsExecuting(selectedResource.Name, command.Name)
Model\ResourceMenuItems.cs (2)
208
.Where(c => c.State !=
CommandViewModelState
.Hidden)
264
IsDisabled = command.State ==
CommandViewModelState
.Disabled || isCommandExecuting(resource, command)
Model\ResourceViewModel.cs (2)
232
public
CommandViewModelState
State { get; }
242
public CommandViewModel(string name,
CommandViewModelState
state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ServiceClient\Partials.cs (4)
122
static
CommandViewModelState
MapState(ResourceCommandState state)
126
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
127
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
128
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,
Aspire.Dashboard.Components.Tests (2)
Pages\ConsoleLogsTests.cs (2)
553
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
617
commands: [new CommandViewModel("test-name",
CommandViewModelState
.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);