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