mirror of https://github.com/Chocobozzz/PeerTube
Improve video import notification
parent
d1adcfadfd
commit
b68d2b0698
|
@ -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 }) {
|
||||
|
|
|
@ -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> <strong>{{ notification.videoImportIdentifier }}</strong> succeeded
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
|
|
Loading…
Reference in New Issue