Improve video import notification

pull/6008/head
Chocobozzz 2024-01-08 10:01:30 +01:00
parent d1adcfadfd
commit b68d2b0698
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 3 deletions

View File

@ -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 }) {

View File

@ -122,7 +122,7 @@
<my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon>
<div class="message" i18n>
<a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl || notification.videoImportUrl">Your video import</a> {{ notification.videoImportIdentifier }} succeeded
<a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl || notification.videoImportUrl">Your video import</a>&nbsp;<strong>{{ notification.videoImportIdentifier }}</strong> succeeded
</div>
</ng-container>