fix: update notifications design (#3000)

This commit is contained in:
Alex Inkin
2025-07-30 11:17:59 +07:00
committed by GitHub
parent 377b7b12ce
commit 55eb999305
5 changed files with 48 additions and 24 deletions

View File

@@ -93,14 +93,13 @@ export class NotificationService {
}
}
viewModal(
{ data, createdAt, code, title, message }: ServerNotification<number>,
full = false,
) {
viewModal(notification: ServerNotification<number>, full = false) {
const { data, createdAt, code, title, message } = notification
const label = code === 1 ? 'Backup Report' : (title as i18nKey)
const component = code === 1 ? REPORT : MARKDOWN
const content = code === 1 ? data : of(data)
this.markSeen([notification])
this.dialogs
.openComponent(full ? message : component, {
label,