diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comments.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comments.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/videos/+video-watch/comment/video-comments.component.ts index 2616820d2..3acddbe6a 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.ts | |||
@@ -121,10 +121,17 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { | |||
121 | 121 | ||
122 | async onWantedToDelete (commentToDelete: VideoComment) { | 122 | async onWantedToDelete (commentToDelete: VideoComment) { |
123 | let message = 'Do you really want to delete this comment?' | 123 | let message = 'Do you really want to delete this comment?' |
124 | |||
124 | if (commentToDelete.totalReplies !== 0) { | 125 | if (commentToDelete.totalReplies !== 0) { |
125 | message += this.i18n(' {{totalReplies}} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies }) | 126 | message += this.i18n(' {{totalReplies}} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies }) |
126 | } | 127 | } |
127 | 128 | ||
129 | if (commentToDelete.isLocal) { | ||
130 | message += this.i18n(' The deletion will be sent to remote instances so they remove the comment too.') | ||
131 | } else { | ||
132 | message += this.i18n(' It is a remote comment, so the deletion will only be effective on your instance.') | ||
133 | } | ||
134 | |||
128 | const res = await this.confirmService.confirm(message, this.i18n('Delete')) | 135 | const res = await this.confirmService.confirm(message, this.i18n('Delete')) |
129 | if (res === false) return | 136 | if (res === false) return |
130 | 137 | ||