Correctly fix video import notification
If the imported video is deleted
This commit is contained in:
parent
f8802489bb
commit
6d28a5056e
|
@ -118,7 +118,8 @@ export class UserNotification implements UserNotificationServer {
|
||||||
case UserNotificationType.MY_VIDEO_IMPORT_SUCCESS:
|
case UserNotificationType.MY_VIDEO_IMPORT_SUCCESS:
|
||||||
this.videoImportUrl = this.buildVideoImportUrl()
|
this.videoImportUrl = this.buildVideoImportUrl()
|
||||||
this.videoImportIdentifier = this.buildVideoImportIdentifier(this.videoImport)
|
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
|
break
|
||||||
|
|
||||||
case UserNotificationType.MY_VIDEO_IMPORT_ERROR:
|
case UserNotificationType.MY_VIDEO_IMPORT_ERROR:
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<my-global-icon iconName="cloud-download"></my-global-icon>
|
<my-global-icon iconName="cloud-download"></my-global-icon>
|
||||||
|
|
||||||
<div class="message">
|
<div class="message">
|
||||||
<a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl">Your video import</a> {{ notification.videoImportIdentifier }} succeeded
|
<a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl || notification.videoImportUrl">Your video import</a> {{ notification.videoImportIdentifier }} succeeded
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user