diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-14 15:04:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-14 15:04:58 +0200 |
commit | 93e903ac165eed918986e415127d6ea9730e572c (patch) | |
tree | bf59b4594923e77926aa99568545b2c54d46c20f /client/src/app | |
parent | da188b9f9e68ece3caa27df7401b4e34aadeb1f5 (diff) | |
download | PeerTube-93e903ac165eed918986e415127d6ea9730e572c.tar.gz PeerTube-93e903ac165eed918986e415127d6ea9730e572c.tar.zst PeerTube-93e903ac165eed918986e415127d6ea9730e572c.zip |
Fix lint
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comments.component.ts | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts index 41edb35ab..fa20ec3b9 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts +++ b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts | |||
@@ -37,7 +37,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
37 | private notifier: Notifier, | 37 | private notifier: Notifier, |
38 | private videoCommentService: VideoCommentService, | 38 | private videoCommentService: VideoCommentService, |
39 | private modalService: NgbModal, | 39 | private modalService: NgbModal, |
40 | private router: Router, | 40 | private router: Router |
41 | ) { | 41 | ) { |
42 | super() | 42 | super() |
43 | } | 43 | } |
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 adce31c5b..79627b1af 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 | |||
@@ -160,7 +160,11 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { | |||
160 | this.timestampClicked.emit(timestamp) | 160 | this.timestampClicked.emit(timestamp) |
161 | } | 161 | } |
162 | 162 | ||
163 | async onWantedToDelete(commentToDelete: VideoComment, title = $localize`Delete`, message = $localize`Do you really want to delete this comment?`): Promise<boolean> { | 163 | async onWantedToDelete ( |
164 | commentToDelete: VideoComment, | ||
165 | title = $localize`Delete`, | ||
166 | message = $localize`Do you really want to delete this comment?` | ||
167 | ): Promise<boolean> { | ||
164 | if (commentToDelete.isLocal || this.video.isLocal) { | 168 | if (commentToDelete.isLocal || this.video.isLocal) { |
165 | message += $localize` The deletion will be sent to remote instances so they can reflect the change.` | 169 | message += $localize` The deletion will be sent to remote instances so they can reflect the change.` |
166 | } else { | 170 | } else { |