4 writes to PrimaryAction
Aspire.Dashboard (3)
Model\DashboardCommandExecutor.cs (3)
130
PrimaryAction
= CreateCancelNotificationAction(loc, RequestCancelAsync)
179
PrimaryAction
= response.Result is not null ? CreateViewResponseNotificationAction(loc, command, response) : null
232
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)
138
Assert.Equal("Localized:ResourceCommandCancel", startingNotification.Entry.
PrimaryAction
?.Text);
141
await startingNotification.Entry.
PrimaryAction
!.OnClick(new ServiceCollection().BuildServiceProvider());
146
Assert.Null(cancelingNotification.Entry.
PrimaryAction
);
158
Assert.Null(canceledNotification.Entry.
PrimaryAction
);
180
var cancelAction = startingNotification.Entry.
PrimaryAction
;
242
Assert.Null(notification.Entry.
PrimaryAction
);