4 writes to PrimaryAction
Aspire.Dashboard (3)
Model\DashboardCommandExecutor.cs (3)
170PrimaryAction = CreateCancelNotificationAction(loc, RequestCancelAsync) 219PrimaryAction = response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null 272PrimaryAction = response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null
Aspire.Dashboard.Components.Tests (1)
Dialogs\NotificationEntryComponentTests.cs (1)
32PrimaryAction = new NotificationAction
7 references to PrimaryAction
Aspire.Dashboard (1)
Components\Dialogs\NotificationEntryComponent.razor.cs (1)
53if (Entry.PrimaryAction is { } primaryAction)
Aspire.Dashboard.Tests (6)
Model\DashboardCommandExecutorTests.cs (6)
233Assert.Equal("Localized:ResourceCommandCancel", startingNotification.Entry.PrimaryAction?.Text); 236await startingNotification.Entry.PrimaryAction!.OnClick(new ServiceCollection().BuildServiceProvider()); 241Assert.Null(cancelingNotification.Entry.PrimaryAction); 253Assert.Null(canceledNotification.Entry.PrimaryAction); 275var cancelAction = startingNotification.Entry.PrimaryAction; 337Assert.Null(notification.Entry.PrimaryAction);