1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Added functionality to highlight a comment.

This commit is contained in:
Abijeet
2017-08-22 01:31:11 +05:30
parent ac07cb41b6
commit b5cd3bff3c
3 changed files with 28 additions and 24 deletions

View File

@@ -59,7 +59,6 @@ const props = ['initialComment', 'index', 'level', 'permissions', 'currentUserId
function data() {
return {
commentHref: null,
trans: trans,
comments: [],
showEditor: false,
@@ -144,13 +143,11 @@ const methods = {
};
const computed = {
commentId: {
get: function () {
return `comment-${this.comment.page_id}-${this.comment.id}`;
},
set: function () {
this.commentHref = `#?cm=${this.commentId}`
}
commentId: function () {
return `comment-${this.comment.page_id}-${this.comment.id}`;
},
commentHref: function () {
return `#?cm=${this.commentId}`;
}
};