Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-07-15 15:46:14 +0300
committerMichaIng <micha@dietpi.com>2021-07-23 16:56:28 +0300
commit6e5191b7021b448a48d741233bd17ab3c222119f (patch)
tree26c353643f5d1dd764d512e1fd15e15168d54346 /apps/files_sharing/src/views
parent229bfcbab56e2de473d2d34bb7d86b5665d4ab35 (diff)
Bump @nextcloud/router from 1.2.0 to 2.0.0
Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-router/releases) - [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/views')
-rw-r--r--apps/files_sharing/src/views/SharingInherited.vue4
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue
index 000710a50d0..1911e05579f 100644
--- a/apps/files_sharing/src/views/SharingInherited.vue
+++ b/apps/files_sharing/src/views/SharingInherited.vue
@@ -128,8 +128,8 @@ export default {
async fetchInheritedShares() {
this.loading = true
try {
- const url = generateOcsUrl(`apps/files_sharing/api/v1/shares/inherited?format=json&path=${encodeURIComponent(this.fullPath)}`, 2)
- const shares = await axios.get(url.replace(/\/$/, ''))
+ const url = generateOcsUrl('apps/files_sharing/api/v1/shares/inherited?format=json&path={path}', { path: this.fullPath })
+ const shares = await axios.get(url)
this.shares = shares.data.ocs.data
.map(share => new Share(share))
.sort((a, b) => b.createdTime - a.createdTime)
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index a7f71d27aca..e08ce261522 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -175,7 +175,7 @@ export default {
this.loading = true
// init params
- const shareUrl = generateOcsUrl('apps/files_sharing/api/v1', 2) + 'shares'
+ const shareUrl = generateOcsUrl('apps/files_sharing/api/v1/shares')
const format = 'json'
// TODO: replace with proper getFUllpath implementation of our own FileInfo model
const path = (this.fileInfo.path + '/' + this.fileInfo.name).replace('//', '/')