aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-09 21:04:31 +0100
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2021-03-22 20:31:56 +0000
commit8988406789c96db57044e56bbe01906878537b25 (patch)
treec7b13b9e946b42a4ed80bcc5b772248e49db9d46 /apps/comments/src
parent90909ab9b9f2263e854788802794007a6d766356 (diff)
downloadnextcloud-server-8988406789c96db57044e56bbe01906878537b25.tar.gz
nextcloud-server-8988406789c96db57044e56bbe01906878537b25.zip
Move comments to initial state
* Do not extend the jssettings * Just use the proper intial state * Use it in the js code as well Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/comments/src')
-rw-r--r--apps/comments/src/views/Comments.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/comments/src/views/Comments.vue b/apps/comments/src/views/Comments.vue
index 586a12ed8d6..070bebe59b3 100644
--- a/apps/comments/src/views/Comments.vue
+++ b/apps/comments/src/views/Comments.vue
@@ -70,6 +70,7 @@
<script>
import { generateOcsUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
+import { loadState } from '@nextcloud/initial-state'
import axios from '@nextcloud/axios'
import VTooltip from 'v-tooltip'
import Vue from 'vue'
@@ -226,7 +227,7 @@ export default {
itemType: 'files',
itemId: this.ressourceId,
sorter: 'commenters|share-recipients',
- limit: OC.appConfig?.comments?.maxAutoCompleteResults || 25,
+ limit: loadState('comment', 'maxAutoCompleteResults'),
},
})
return callback(results.data.ocs.data)