diff options
author | kimsible <kimsible@users.noreply.github.com> | 2020-08-07 14:03:28 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-14 15:03:38 +0200 |
commit | f63c03fb6ecccb5ac8e0d88917f072339b38ffb5 (patch) | |
tree | 37d9dc9fd18057e5071cfc7bba51177d02d8c094 /client/src/app/+videos/+video-watch/comment/video-comment.component.html | |
parent | 09f8f73fbc8177930c76171300d4abc9f380d746 (diff) | |
download | PeerTube-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-comment.component.html')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment.component.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.html b/client/src/app/+videos/+video-watch/comment/video-comment.component.html index aa6d45789..fdb555d18 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment.component.html +++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.html | |||
@@ -43,6 +43,7 @@ | |||
43 | <div class="comment-actions"> | 43 | <div class="comment-actions"> |
44 | <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply" i18n>Reply</div> | 44 | <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply" i18n>Reply</div> |
45 | <div *ngIf="isRemovableByUser()" (click)="onWantToDelete()" class="comment-action-delete" i18n>Delete</div> | 45 | <div *ngIf="isRemovableByUser()" (click)="onWantToDelete()" class="comment-action-delete" i18n>Delete</div> |
46 | <div *ngIf="isRedraftableByUser()" (click)="onWantToRedraft()" class="comment-action-redraft" i18n>Delete & re-draft</div> | ||
46 | 47 | ||
47 | <my-user-moderation-dropdown | 48 | <my-user-moderation-dropdown |
48 | [prependActions]="prependModerationActions" | 49 | [prependActions]="prependModerationActions" |
@@ -72,6 +73,7 @@ | |||
72 | [focusOnInit]="true" | 73 | [focusOnInit]="true" |
73 | (commentCreated)="onCommentReplyCreated($event)" | 74 | (commentCreated)="onCommentReplyCreated($event)" |
74 | (cancel)="onResetReply()" | 75 | (cancel)="onResetReply()" |
76 | [textValue]="redraftValue" | ||
75 | ></my-video-comment-add> | 77 | ></my-video-comment-add> |
76 | 78 | ||
77 | <div *ngIf="commentTree" class="children"> | 79 | <div *ngIf="commentTree" class="children"> |
@@ -84,8 +86,10 @@ | |||
84 | [parentComments]="newParentComments" | 86 | [parentComments]="newParentComments" |
85 | (wantedToReply)="onWantToReply($event)" | 87 | (wantedToReply)="onWantToReply($event)" |
86 | (wantedToDelete)="onWantToDelete($event)" | 88 | (wantedToDelete)="onWantToDelete($event)" |
89 | (wantedToRedraft)="onWantToRedraft($event)" | ||
87 | (resetReply)="onResetReply()" | 90 | (resetReply)="onResetReply()" |
88 | (timestampClicked)="handleTimestampClicked($event)" | 91 | (timestampClicked)="handleTimestampClicked($event)" |
92 | [redraftValue]="redraftValue" | ||
89 | ></my-video-comment> | 93 | ></my-video-comment> |
90 | </div> | 94 | </div> |
91 | </div> | 95 | </div> |