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