13 references to CommandViewModelState
Aspire.Dashboard (13)
Components\Controls\ResourceActions.razor.cs (3)
126
_highlightedCommands.AddRange(Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(MaxHighlightedCount));
129
var menuCommands = Commands.Where(c => !_highlightedCommands.Contains(c) && c.State !=
CommandViewModelState
.Hidden).ToList();
144
IsDisabled = command.State ==
CommandViewModelState
.Disabled
Components\Pages\ConsoleLogs.razor.cs (3)
288
_highlightedCommands.AddRange(PageViewModel.SelectedResource.Commands.Where(c => c.IsHighlighted && c.State !=
CommandViewModelState
.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
291
var menuCommands = PageViewModel.SelectedResource.Commands.Where(c => !_highlightedCommands.Contains(c) && c.State !=
CommandViewModelState
.Hidden).ToList();
304
IsDisabled = command.State ==
CommandViewModelState
.Disabled
Components\Pages\Resources.razor.cs (1)
274
if (command.IsHighlighted && command.State !=
CommandViewModelState
.Hidden)
Model\ResourceViewModel.cs (2)
154
public
CommandViewModelState
State { get; }
163
public CommandViewModel(string name,
CommandViewModelState
state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
112
static
CommandViewModelState
MapState(ResourceCommandState state)
116
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
117
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
118
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,