4 writes to PrimaryAction
Aspire.Dashboard (3)
Model\DashboardCommandExecutor.cs (3)
126
PrimaryAction
= CreateCancelNotificationAction(loc, RequestCancelAsync)
175
PrimaryAction
= response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null
225
PrimaryAction
= response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null
Aspire.Dashboard.Components.Tests (1)
Dialogs\NotificationEntryComponentTests.cs (1)
32
PrimaryAction
= new NotificationAction
7 references to PrimaryAction
Aspire.Dashboard (1)
Components\Dialogs\NotificationEntryComponent.razor.cs (1)
53
if (Entry.
PrimaryAction
is { } primaryAction)
Aspire.Dashboard.Tests (6)
Model\DashboardCommandExecutorTests.cs (6)
48
Assert.Equal("Localized:ResourceCommandCancel", startingNotification.Entry.
PrimaryAction
?.Text);
51
await startingNotification.Entry.
PrimaryAction
!.OnClick(new ServiceCollection().BuildServiceProvider());
56
Assert.Null(cancelingNotification.Entry.
PrimaryAction
);
68
Assert.Null(canceledNotification.Entry.
PrimaryAction
);
90
var cancelAction = startingNotification.Entry.
PrimaryAction
;
152
Assert.Null(notification.Entry.
PrimaryAction
);