aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/comment/video-comments.component.html
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-08-07 14:03:28 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-14 15:03:38 +0200
commitf63c03fb6ecccb5ac8e0d88917f072339b38ffb5 (patch)
tree37d9dc9fd18057e5071cfc7bba51177d02d8c094 /client/src/app/+videos/+video-watch/comment/video-comments.component.html
parent09f8f73fbc8177930c76171300d4abc9f380d746 (diff)
downloadPeerTube-f63c03fb6ecccb5ac8e0d88917f072339b38ffb5.tar.gz
PeerTube-f63c03fb6ecccb5ac8e0d88917f072339b38ffb5.tar.zst
PeerTube-f63c03fb6ecccb5ac8e0d88917f072339b38ffb5.zip
Add delete & re-draft for comments without replies
Diffstat (limited to 'client/src/app/+videos/+video-watch/comment/video-comments.component.html')
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comments.component.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.html b/client/src/app/+videos/+video-watch/comment/video-comments.component.html
index dd1d43560..1bc0885a4 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comments.component.html
+++ b/client/src/app/+videos/+video-watch/comment/video-comments.component.html
@@ -27,6 +27,7 @@
27 [video]="video" 27 [video]="video"
28 [user]="user" 28 [user]="user"
29 (commentCreated)="onCommentThreadCreated($event)" 29 (commentCreated)="onCommentThreadCreated($event)"
30 [textValue]="commentThreadRedraftValue"
30 ></my-video-comment-add> 31 ></my-video-comment-add>
31 32
32 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div> 33 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div>
@@ -50,9 +51,11 @@
50 [firstInThread]="true" 51 [firstInThread]="true"
51 (wantedToReply)="onWantedToReply($event)" 52 (wantedToReply)="onWantedToReply($event)"
52 (wantedToDelete)="onWantedToDelete($event)" 53 (wantedToDelete)="onWantedToDelete($event)"
54 (wantedToRedraft)="onWantedToRedraft($event)"
53 (threadCreated)="onThreadCreated($event)" 55 (threadCreated)="onThreadCreated($event)"
54 (resetReply)="onResetReply()" 56 (resetReply)="onResetReply()"
55 (timestampClicked)="handleTimestampClicked($event)" 57 (timestampClicked)="handleTimestampClicked($event)"
58 [redraftValue]="commentReplyRedraftValue"
56 ></my-video-comment> 59 ></my-video-comment>
57 </div> 60 </div>
58 61
@@ -66,9 +69,11 @@
66 [firstInThread]="i + 1 !== comments.length" 69 [firstInThread]="i + 1 !== comments.length"
67 (wantedToReply)="onWantedToReply($event)" 70 (wantedToReply)="onWantedToReply($event)"
68 (wantedToDelete)="onWantedToDelete($event)" 71 (wantedToDelete)="onWantedToDelete($event)"
72 (wantedToRedraft)="onWantedToRedraft($event)"
69 (threadCreated)="onThreadCreated($event)" 73 (threadCreated)="onThreadCreated($event)"
70 (resetReply)="onResetReply()" 74 (resetReply)="onResetReply()"
71 (timestampClicked)="handleTimestampClicked($event)" 75 (timestampClicked)="handleTimestampClicked($event)"
76 [redraftValue]="commentReplyRedraftValue"
72 > 77 >
73 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies mb-2"> 78 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies mb-2">
74 <span class="glyphicon glyphicon-menu-down"></span> 79 <span class="glyphicon glyphicon-menu-down"></span>