From e7e766f8150652c534eee66e3ede5cf623ee1ff2 Mon Sep 17 00:00:00 2001 From: Michael An <37589122+Michael18811380328@users.noreply.github.com> Date: Wed, 27 Feb 2019 12:22:13 +0800 Subject: [PATCH] add comment (#3007) --- frontend/src/markdown-editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/markdown-editor.js b/frontend/src/markdown-editor.js index 0f4806eb4d..d702c190e2 100644 --- a/frontend/src/markdown-editor.js +++ b/frontend/src/markdown-editor.js @@ -29,6 +29,8 @@ class EditorUtilities { this.serviceUrl = serviceUrl; this.name = userName; this.contact_email = userInfo.contact_email; + this.fileName = fileName; + this.userName = userName; } saveContent(content) { @@ -204,7 +206,7 @@ class EditorUtilities { } getCommentsNumber() { - return seafileAPI.getCommentsNumber(this.repoID, dirPath); + return seafileAPI.getCommentsNumber(this.repoID, filePath); } postComment(comment, detail) {