diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-20 15:46:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-20 15:46:33 +0100 |
commit | 6d28a5056efc68da51c7ef00d563f3557a72bc49 (patch) | |
tree | 60f06729eabcdd73a09f45d7806c5ccd796036cd /client | |
parent | f8802489bbc2c0363b5668e47de7c35f573342e1 (diff) | |
download | PeerTube-6d28a5056efc68da51c7ef00d563f3557a72bc49.tar.gz PeerTube-6d28a5056efc68da51c7ef00d563f3557a72bc49.tar.zst PeerTube-6d28a5056efc68da51c7ef00d563f3557a72bc49.zip |
Correctly fix video import notification
If the imported video is deleted
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/users/user-notification.model.ts | 3 | ||||
-rw-r--r-- | client/src/app/shared/users/user-notifications.component.html | 2 |
2 files changed, 3 insertions, 2 deletions
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 { | |||
118 | case UserNotificationType.MY_VIDEO_IMPORT_SUCCESS: | 118 | case UserNotificationType.MY_VIDEO_IMPORT_SUCCESS: |
119 | this.videoImportUrl = this.buildVideoImportUrl() | 119 | this.videoImportUrl = this.buildVideoImportUrl() |
120 | this.videoImportIdentifier = this.buildVideoImportIdentifier(this.videoImport) | 120 | this.videoImportIdentifier = this.buildVideoImportIdentifier(this.videoImport) |
121 | this.videoUrl = this.buildVideoUrl(this.videoImport.video) | 121 | |
122 | if (this.videoImport.video) this.videoUrl = this.buildVideoUrl(this.videoImport.video) | ||
122 | break | 123 | break |
123 | 124 | ||
124 | case UserNotificationType.MY_VIDEO_IMPORT_ERROR: | 125 | 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 @@ | |||
56 | <my-global-icon iconName="cloud-download"></my-global-icon> | 56 | <my-global-icon iconName="cloud-download"></my-global-icon> |
57 | 57 | ||
58 | <div class="message"> | 58 | <div class="message"> |
59 | <a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl">Your video import</a> {{ notification.videoImportIdentifier }} succeeded | 59 | <a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl || notification.videoImportUrl">Your video import</a> {{ notification.videoImportIdentifier }} succeeded |
60 | </div> | 60 | </div> |
61 | </ng-container> | 61 | </ng-container> |
62 | 62 | ||