aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src/mixins/CommentView.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/src/mixins/CommentView.ts')
-rw-r--r--apps/comments/src/mixins/CommentView.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/comments/src/mixins/CommentView.ts b/apps/comments/src/mixins/CommentView.ts
index 9cd14904875..a49e33f7fd5 100644
--- a/apps/comments/src/mixins/CommentView.ts
+++ b/apps/comments/src/mixins/CommentView.ts
@@ -6,10 +6,14 @@ import { defineComponent } from 'vue'
export default defineComponent({
props: {
- ressourceId: {
+ resourceId: {
type: Number,
required: true,
},
+ resourceType: {
+ type: String,
+ default: 'files',
+ },
},
data() {
return {
@@ -33,7 +37,7 @@ export default defineComponent({
params: {
search,
itemType: 'files',
- itemId: this.ressourceId,
+ itemId: this.resourceId,
sorter: 'commenters|share-recipients',
limit: loadState('comments', 'maxAutoCompleteResults'),
},