+
+ return true
+ }
+
+ async onWantedToRedraft (commentToRedraft: VideoComment) {
+ const confirm = await this.onWantedToDelete(commentToRedraft, $localize`Delete and re-draft`, $localize`Do you really want to delete and re-draft this comment?`)
+
+ if (confirm) {
+ this.inReplyToCommentId = commentToRedraft.inReplyToCommentId
+
+ // Restore line feed for editing
+ const commentToRedraftText = commentToRedraft.text.replace(/<br.?\/?>/g, '\r\n')
+
+ if (commentToRedraft.threadId === commentToRedraft.id) {
+ this.commentThreadRedraftValue = commentToRedraftText
+ } else {
+ this.commentReplyRedraftValue = commentToRedraftText
+ }
+
+ }