Browse Source

Ensure comment updated is reflected in Vue

pull/496/head
Clemens Wolff 4 years ago
parent
commit
38e163cec3
1 changed files with 3 additions and 0 deletions
  1. 3
      app/server/static/components/annotationMixin.js

3
app/server/static/components/annotationMixin.js

@ -114,6 +114,9 @@ export default {
this.comments = comments;
} else if (commentId && hasText) {
await HTTP.patch(`docs/${docId}/comments/${commentId}`, { text });
const comments = this.comments.slice();
comments[this.pageNumber].text = text;
this.comments = comments;
} else {
const response = await HTTP.post(`docs/${docId}/comments`, { text });
const comments = this.comments.slice();

Loading…
Cancel
Save