From b68d2b06981a327c54a25f3186461cbe22b124d6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Jan 2024 10:01:30 +0100 Subject: [PATCH] Improve video import notification --- .../app/shared/shared-main/users/user-notification.model.ts | 4 ++-- .../shared-main/users/user-notifications.component.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/shared-main/users/user-notification.model.ts b/client/src/app/shared/shared-main/users/user-notification.model.ts index 865eff378..369bc7396 100644 --- a/client/src/app/shared/shared-main/users/user-notification.model.ts +++ b/client/src/app/shared/shared-main/users/user-notification.model.ts @@ -264,8 +264,8 @@ export class UserNotification implements UserNotificationServer { return '/my-library/video-imports' } - private buildVideoImportIdentifier (videoImport: { targetUrl?: string, magnetUri?: string, torrentName?: string }) { - return videoImport.targetUrl || videoImport.magnetUri || videoImport.torrentName + private buildVideoImportIdentifier (videoImport: UserNotification['videoImport']) { + return videoImport.video?.name || videoImport.targetUrl || videoImport.magnetUri || videoImport.torrentName } private buildCommentUrl (comment: { video: { uuid: string }, threadId: number }) { diff --git a/client/src/app/shared/shared-main/users/user-notifications.component.html b/client/src/app/shared/shared-main/users/user-notifications.component.html index 351e4dc3f..bff177b6f 100644 --- a/client/src/app/shared/shared-main/users/user-notifications.component.html +++ b/client/src/app/shared/shared-main/users/user-notifications.component.html @@ -122,7 +122,7 @@
- Your video import {{ notification.videoImportIdentifier }} succeeded + Your video import {{ notification.videoImportIdentifier }} succeeded