aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-01-21 14:08:25 +0100
committerChocobozzz <me@florianbigard.com>2019-01-21 14:08:25 +0100
commit0f80cb03c66f4eb429a296f7c722e91d78e29ade (patch)
tree4a48a4699264b62e183ab6a0eb6a01b3ef7e59d6
parentfdebd9a3bdcc3ea3881f2234a0f214c2588de3e4 (diff)
downloadPeerTube-0f80cb03c66f4eb429a296f7c722e91d78e29ade.tar.gz
PeerTube-0f80cb03c66f4eb429a296f7c722e91d78e29ade.tar.zst
PeerTube-0f80cb03c66f4eb429a296f7c722e91d78e29ade.zip
Add link to the profile who commented in notif
-rw-r--r--client/src/app/shared/users/user-notification.model.ts1
-rw-r--r--client/src/app/shared/users/user-notifications.component.html4
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 3bb53ff45..125d2120c 100644
--- a/client/src/app/shared/users/user-notification.model.ts
+++ b/client/src/app/shared/users/user-notification.model.ts
@@ -95,6 +95,7 @@ export class UserNotification implements UserNotificationServer {
95 95
96 case UserNotificationType.NEW_COMMENT_ON_MY_VIDEO: 96 case UserNotificationType.NEW_COMMENT_ON_MY_VIDEO:
97 case UserNotificationType.COMMENT_MENTION: 97 case UserNotificationType.COMMENT_MENTION:
98 this.accountUrl = this.buildAccountUrl(this.comment.account)
98 this.commentUrl = [ this.buildVideoUrl(this.comment.video), { threadId: this.comment.threadId } ] 99 this.commentUrl = [ this.buildVideoUrl(this.comment.video), { threadId: this.comment.threadId } ]
99 break 100 break
100 101
diff --git a/client/src/app/shared/users/user-notifications.component.html b/client/src/app/shared/users/user-notifications.component.html
index caa518e7f..0d69e0feb 100644
--- a/client/src/app/shared/users/user-notifications.component.html
+++ b/client/src/app/shared/users/user-notifications.component.html
@@ -40,7 +40,7 @@
40 <img alt="" aria-labelledby="avatar" class="avatar" [src]="notification.comment.account.avatarUrl" /> 40 <img alt="" aria-labelledby="avatar" class="avatar" [src]="notification.comment.account.avatarUrl" />
41 41
42 <div class="message"> 42 <div class="message">
43 {{ notification.comment.account.displayName }} commented your video <a (click)="markAsRead(notification)" [routerLink]="notification.commentUrl">{{ notification.comment.video.name }}</a> 43 <a (click)="markAsRead(notification)" [routerLink]="notification.accountUrl">{{ notification.comment.account.displayName }}</a> commented your video <a (click)="markAsRead(notification)" [routerLink]="notification.commentUrl">{{ notification.comment.video.name }}</a>
44 </div> 44 </div>
45 </ng-container> 45 </ng-container>
46 46
@@ -91,7 +91,7 @@
91 <img alt="" aria-labelledby="avatar" class="avatar" [src]="notification.comment.account.avatarUrl" /> 91 <img alt="" aria-labelledby="avatar" class="avatar" [src]="notification.comment.account.avatarUrl" />
92 92
93 <div class="message"> 93 <div class="message">
94 {{ notification.comment.account.displayName }} mentioned you on <a (click)="markAsRead(notification)" [routerLink]="notification.commentUrl">video {{ notification.comment.video.name }}</a> 94 <a (click)="markAsRead(notification)" [routerLink]="notification.accountUrl">{{ notification.comment.account.displayName }}</a> mentioned you on <a (click)="markAsRead(notification)" [routerLink]="notification.commentUrl">video {{ notification.comment.video.name }}</a>
95 </div> 95 </div>
96 </ng-container> 96 </ng-container>
97 </ng-container> 97 </ng-container>