4 writes to PrimaryAction
Aspire.Dashboard (3)
Model\DashboardCommandExecutor.cs (3)
126PrimaryAction = CreateCancelNotificationAction(loc, RequestCancelAsync) 175PrimaryAction = response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null 225PrimaryAction = 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)
48Assert.Equal("Localized:ResourceCommandCancel", startingNotification.Entry.PrimaryAction?.Text); 51await startingNotification.Entry.PrimaryAction!.OnClick(new ServiceCollection().BuildServiceProvider()); 56Assert.Null(cancelingNotification.Entry.PrimaryAction); 68Assert.Null(canceledNotification.Entry.PrimaryAction); 90var cancelAction = startingNotification.Entry.PrimaryAction; 152Assert.Null(notification.Entry.PrimaryAction);