aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components
diff options
context:
space:
mode:
authorVarun Patil <varunpatil@ucla.edu>2023-10-19 10:06:16 -0700
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-20 16:19:43 +0200
commit9bd50a7296bd83c0f89407abf0927d240fac7fe0 (patch)
tree4b8324c902817f42d24ebe7805661607b1d9b6a7 /apps/files_sharing/src/components
parent4828ac352145d2d3eb002e55631bac2d494c96a9 (diff)
downloadnextcloud-server-9bd50a7296bd83c0f89407abf0927d240fac7fe0.tar.gz
nextcloud-server-9bd50a7296bd83c0f89407abf0927d240fac7fe0.zip
refactor: remove remaining usage of OC::getCapabilities
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Diffstat (limited to 'apps/files_sharing/src/components')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index 8c4605cc75a..2a02af1be0f 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -46,6 +46,7 @@
<script>
import { generateOcsUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
+import { getCapabilities } from '@nextcloud/capabilities'
import axios from '@nextcloud/axios'
import debounce from 'debounce'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
@@ -175,7 +176,7 @@ export default {
async getSuggestions(search, lookup = false) {
this.loading = true
- if (OC.getCapabilities().files_sharing.sharee.query_lookup_default === true) {
+ if (getCapabilities().files_sharing.sharee.query_lookup_default === true) {
lookup = true
}
@@ -191,7 +192,7 @@ export default {
this.SHARE_TYPES.SHARE_TYPE_SCIENCEMESH,
]
- if (OC.getCapabilities().files_sharing.public.enabled === true) {
+ if (getCapabilities().files_sharing.public.enabled === true) {
shareType.push(this.SHARE_TYPES.SHARE_TYPE_EMAIL)
}
@@ -499,7 +500,7 @@ export default {
shareType: value.shareType,
shareWith: value.shareWith,
password,
- permissions: this.fileInfo.sharePermissions & OC.getCapabilities().files_sharing.default_permissions,
+ permissions: this.fileInfo.sharePermissions & getCapabilities().files_sharing.default_permissions,
attributes: JSON.stringify(this.fileInfo.shareAttributes),
})