24 references to Enabled
Aspire.Dashboard (4)
Components\Controls\TerminalDisconnectedBanner.razor.cs (2)
95
return commands.OrderBy(c => c.State != CommandViewModelState.
Enabled
)
100
private bool RestartDisabled => _executing || RestartCommand is not { State: CommandViewModelState.
Enabled
} command ||
Model\TelemetryExportService.cs (1)
772
.Where(c => c.State == CommandViewModelState.
Enabled
)
ServiceClient\Partials.cs (1)
141
ResourceCommandState.Enabled => CommandViewModelState.
Enabled
,
Aspire.Dashboard.Components.Tests (13)
Controls\ResourceDetailsTests.cs (3)
801
CommandViewModelState.
Enabled
,
847
CommandViewModelState.
Enabled
,
893
CommandViewModelState.
Enabled
,
Controls\TerminalDisconnectedBannerTests.cs (1)
205
private static CommandViewModel CreateCommand(string name, CommandViewModelState state = CommandViewModelState.
Enabled
) =>
Controls\TerminalViewTests.cs (1)
624
commands: [new CommandViewModel(CommandViewModel.StartCommand, CommandViewModelState.
Enabled
,
Layout\ResourcesLayoutTests.cs (3)
543
var stop = new CommandViewModel("resource-stop", CommandViewModelState.
Enabled
, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
544
var other = new CommandViewModel("custom", CommandViewModelState.
Enabled
, "Custom command", "", confirmationMessage: "", argumentInputs: [], isHighlighted: false, iconName: string.Empty, iconVariant: IconVariant.Regular);
576
var stop = new CommandViewModel("resource-stop", CommandViewModelState.
Enabled
, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
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)
239
CommandViewModelState.
Enabled
,
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
1511
CommandViewModelState.
Enabled
,
Model\DashboardCommandExecutorTests.cs (1)
338
CommandViewModelState.
Enabled
,
Model\ResourceMenuBuilderTests.cs (5)
332
CommandViewModelState.
Enabled
,
342
CommandViewModelState.
Enabled
,
380
CommandViewModelState.
Enabled
,
425
CommandViewModelState.
Enabled
,
468
CommandViewModelState.
Enabled
,