mirror of https://github.com/Chocobozzz/PeerTube
Fix lint
parent
da188b9f9e
commit
93e903ac16
|
@ -37,7 +37,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
|
||||||
private notifier: Notifier,
|
private notifier: Notifier,
|
||||||
private videoCommentService: VideoCommentService,
|
private videoCommentService: VideoCommentService,
|
||||||
private modalService: NgbModal,
|
private modalService: NgbModal,
|
||||||
private router: Router,
|
private router: Router
|
||||||
) {
|
) {
|
||||||
super()
|
super()
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,11 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
this.timestampClicked.emit(timestamp)
|
this.timestampClicked.emit(timestamp)
|
||||||
}
|
}
|
||||||
|
|
||||||
async onWantedToDelete(commentToDelete: VideoComment, title = $localize`Delete`, message = $localize`Do you really want to delete this comment?`): Promise<boolean> {
|
async onWantedToDelete (
|
||||||
|
commentToDelete: VideoComment,
|
||||||
|
title = $localize`Delete`,
|
||||||
|
message = $localize`Do you really want to delete this comment?`
|
||||||
|
): Promise<boolean> {
|
||||||
if (commentToDelete.isLocal || this.video.isLocal) {
|
if (commentToDelete.isLocal || this.video.isLocal) {
|
||||||
message += $localize` The deletion will be sent to remote instances so they can reflect the change.`
|
message += $localize` The deletion will be sent to remote instances so they can reflect the change.`
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue