aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src/components/Comment.vue
diff options
context:
space:
mode:
authorGrigory Vodyanov <scratchx@gmx.com>2024-06-13 11:39:18 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-07-15 13:38:41 +0000
commitbd7c29c362c3bbd9f1ff495674a1980b54d14104 (patch)
treed466fa2272a837168b38e525871c738d1c9aee2d /apps/comments/src/components/Comment.vue
parentd42849852e2d4b8b84f37e5e5efc5a3ca7625138 (diff)
downloadnextcloud-server-bd7c29c362c3bbd9f1ff495674a1980b54d14104.tar.gz
nextcloud-server-bd7c29c362c3bbd9f1ff495674a1980b54d14104.zip
fix(comments): comment deleting with activities installed
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com> Signed-off-by: Grigory V <scratchx@gmx.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/comments/src/components/Comment.vue')
-rw-r--r--apps/comments/src/components/Comment.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue
index 8c6287d9ecb..29711ad687d 100644
--- a/apps/comments/src/components/Comment.vue
+++ b/apps/comments/src/components/Comment.vue
@@ -4,7 +4,7 @@
-->
<template>
<component :is="tag"
- v-show="!deleted"
+ v-show="!deleted && !isLimbo"
:class="{'comment--loading': loading}"
class="comment">
<!-- Comment header toolbar -->
@@ -121,6 +121,8 @@ import IconDelete from 'vue-material-design-icons/Delete.vue'
import IconEdit from 'vue-material-design-icons/Pencil.vue'
import CommentMixin from '../mixins/CommentMixin.js'
+import { mapStores } from 'pinia'
+import { useDeletedCommentLimbo } from '../store/deletedCommentLimbo.js'
// Dynamic loading
const NcRichContenteditable = () => import('@nextcloud/vue/dist/Components/NcRichContenteditable.js')
@@ -193,6 +195,7 @@ export default {
},
computed: {
+ ...mapStores(useDeletedCommentLimbo),
/**
* Is the current user the author of this comment
@@ -225,6 +228,10 @@ export default {
timestamp() {
return Date.parse(this.creationDateTime)
},
+
+ isLimbo() {
+ return this.deletedCommentLimboStore.checkForId(this.id)
+ },
},
watch: {