3 writes to PrimaryAction
Aspire.Dashboard (3)
Model\DashboardCommandExecutor.cs (3)
138
PrimaryAction
= CreateCancelNotificationAction(loc, RequestCancelAsync)
203
PrimaryAction
= response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null
251
PrimaryAction
= response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null
7 references to PrimaryAction
Aspire.Dashboard (1)
Components\Dialogs\NotificationEntryComponent.razor.cs (1)
56
if (Entry.
PrimaryAction
is { } primaryAction)
Aspire.Dashboard.Tests (6)
Model\DashboardCommandExecutorTests.cs (6)
47
Assert.Equal("Localized:ResourceCommandCancel", startingNotification.Entry.
PrimaryAction
?.Text);
50
await startingNotification.Entry.
PrimaryAction
!.OnClick(new ServiceCollection().BuildServiceProvider());
55
Assert.Null(cancelingNotification.Entry.
PrimaryAction
);
67
Assert.Null(canceledNotification.Entry.
PrimaryAction
);
91
var cancelAction = startingNotification.Entry.
PrimaryAction
;
143
Assert.Null(notification.Entry.
PrimaryAction
);