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