18 references to Disabled
Aspire.Dashboard (6)
Components\Controls\MissingParametersPanel.razor.cs (1)
178
editor.Command.State == CommandViewModelState.
Disabled
||
Components\Controls\ParameterOverview.razor.cs (2)
57
SetCommand.State == CommandViewModelState.
Disabled
||
61
DeleteCommand.State == CommandViewModelState.
Disabled
||
Components\Layout\ResourcesLayout.razor.cs (1)
1959
DashboardClient.IsReadOnly || command.State == CommandViewModelState.
Disabled
|| DashboardCommandExecutor.IsExecuting(resource.Name, command.Name);
Model\ResourceMenuBuilder.cs (1)
409
_dashboardClient.IsReadOnly || command.State == CommandViewModelState.
Disabled
|| isCommandExecuting(resource, command));
ServiceClient\Partials.cs (1)
143
ResourceCommandState.Disabled => CommandViewModelState.
Disabled
,
Aspire.Dashboard.Components.Tests (8)
Controls\TerminalDisconnectedBannerTests.cs (2)
169
commands: [CreateCommand(CommandViewModel.RestartCommand, CommandViewModelState.
Disabled
)]))]);
173
commands: [CreateCommand(CommandViewModel.RestartCommand, CommandViewModelState.
Disabled
),
Layout\ResourcesLayoutTests.cs (6)
645
Command("disabled", CommandViewModelState.
Disabled
),
1623
ModelTestHelpers.CreateResource("worker", commands: [Stop(CommandViewModelState.
Disabled
)]),
1793
Command("inspect", CommandViewModelState.
Disabled
, true),
1826
[InlineData(CommandViewModelState.
Disabled
, true, false, ResourceListDensity.Comfortable)]
1874
Assert.Equal(readOnly || setState == CommandViewModelState.
Disabled
, setButton.HasAttribute("disabled"));
1898
Command("inspect", CommandViewModelState.
Disabled
)
Aspire.Dashboard.Tests (4)
Model\DashboardCommandExecutorTests.cs (1)
90
[InlineData(CommandViewModelState.
Disabled
, "")]
Model\ResourceMenuBuilderTests.cs (3)
90
CreateCommand("Refresh", CommandViewModelState.
Disabled
),
91
CreateCommand("Unavailable", CommandViewModelState.
Disabled
)
145
[InlineData(false, CommandViewModelState.
Disabled
)]