diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-21 16:30:34 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-28 10:26:08 +0100 |
commit | 72aeb8ef05e3d2b1cf63c659648ad8659474903b (patch) | |
tree | 365cdd1744e1e2e14e83fafba970030675eca253 /apps/comments/src/mixins | |
parent | 3cb10bc66f004892d5bfc77fbb0f9a4634a7ff47 (diff) | |
download | nextcloud-server-72aeb8ef05e3d2b1cf63c659648ad8659474903b.tar.gz nextcloud-server-72aeb8ef05e3d2b1cf63c659648ad8659474903b.zip |
Add mentions data
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments/src/mixins')
-rw-r--r-- | apps/comments/src/mixins/CommentMixin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/comments/src/mixins/CommentMixin.js b/apps/comments/src/mixins/CommentMixin.js index 03f5db0846f..7b6e7a9b0a0 100644 --- a/apps/comments/src/mixins/CommentMixin.js +++ b/apps/comments/src/mixins/CommentMixin.js @@ -32,8 +32,7 @@ export default { default: null, }, message: { - // GenFileInfo can convert message as numbers if they doesn't contains text - type: [String, Number], + type: String, default: '', }, ressourceId: { @@ -103,6 +102,7 @@ export default { const newComment = await NewComment(this.commentsType, this.ressourceId, message) this.logger.debug('New comment posted', { commentsType: this.commentsType, ressourceId: this.ressourceId, newComment }) this.$emit('new', newComment) + // Clear old content this.$emit('update:message', '') this.localMessage = '' |