10 references to CommandViewModelState
Aspire.Dashboard (10)
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\Resources.razor.cs (1)
235
if (command.IsHighlighted && command.State !=
CommandViewModelState
.Hidden)
Model\ResourceViewModel.cs (2)
141
public
CommandViewModelState
State { get; }
150
public CommandViewModel(string name,
CommandViewModelState
state, string displayName, string displayDescription, string confirmationMessage, Value? parameter, bool isHighlighted, string iconName, IconVariant iconVariant)
ResourceService\Partials.cs (4)
105
static
CommandViewModelState
MapState(ResourceCommandState state)
109
ResourceCommandState.Enabled =>
CommandViewModelState
.Enabled,
110
ResourceCommandState.Disabled =>
CommandViewModelState
.Disabled,
111
ResourceCommandState.Hidden =>
CommandViewModelState
.Hidden,