Notifications: Permanent option and close button (#563)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Nuckyz
2023-03-04 14:49:15 -03:00
committed by GitHub
parent cab72e1be6
commit e219aaa062
3 changed files with 58 additions and 10 deletions

View File

@ -54,6 +54,8 @@ export interface NotificationData {
onClick?(): void;
onClose?(): void;
color?: string;
/** Whether this notification should not have a timeout */
permanent?: boolean;
}
function _showNotification(notification: NotificationData, id: number) {