Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Improve video import notification

Chocobozzzb68d2b06981a
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 865eff3785..369bc73964 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 351e4dc3f2..bff177b6f1 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 @@
<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>