mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 11:08:12 +00:00
style: ui improvement to the notification cards.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import { CurrentUser } from "@edr/api-common";
|
||||
import { NotificationAudience } from "@edr/types";
|
||||
import {
|
||||
NotificationAudience,
|
||||
NotificationPriority,
|
||||
NotificationType,
|
||||
} from "@edr/types";
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
@@ -62,7 +66,13 @@ export class NotificationInboxController {
|
||||
sendTest(
|
||||
@CurrentUser() user: AuthUserPayload,
|
||||
@Body()
|
||||
body: { audience?: NotificationAudience; title?: string; message?: string },
|
||||
body: {
|
||||
audience?: NotificationAudience;
|
||||
type?: NotificationType;
|
||||
priority?: NotificationPriority;
|
||||
title?: string;
|
||||
message?: string;
|
||||
},
|
||||
) {
|
||||
return this.service.sendTestToUser(resolveAuthUserId(user), body ?? {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user