From 6d28a5056efc68da51c7ef00d563f3557a72bc49 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Feb 2019 15:46:33 +0100 Subject: Correctly fix video import notification If the imported video is deleted --- client/src/app/shared/users/user-notification.model.ts | 3 ++- client/src/app/shared/users/user-notifications.component.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/users') diff --git a/client/src/app/shared/users/user-notification.model.ts b/client/src/app/shared/users/user-notification.model.ts index 5d0dc19ae..097830752 100644 --- a/client/src/app/shared/users/user-notification.model.ts +++ b/client/src/app/shared/users/user-notification.model.ts @@ -118,7 +118,8 @@ export class UserNotification implements UserNotificationServer { case UserNotificationType.MY_VIDEO_IMPORT_SUCCESS: this.videoImportUrl = this.buildVideoImportUrl() this.videoImportIdentifier = this.buildVideoImportIdentifier(this.videoImport) - this.videoUrl = this.buildVideoUrl(this.videoImport.video) + + if (this.videoImport.video) this.videoUrl = this.buildVideoUrl(this.videoImport.video) break case UserNotificationType.MY_VIDEO_IMPORT_ERROR: diff --git a/client/src/app/shared/users/user-notifications.component.html b/client/src/app/shared/users/user-notifications.component.html index 0d69e0feb..1c0af1bb0 100644 --- a/client/src/app/shared/users/user-notifications.component.html +++ b/client/src/app/shared/users/user-notifications.component.html @@ -56,7 +56,7 @@
- Your video import {{ notification.videoImportIdentifier }} succeeded + Your video import {{ notification.videoImportIdentifier }} succeeded
-- cgit v1.2.3