Fix route path for pending remote shares

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Vincent Petry 2021-07-27 13:30:44 +02:00
parent dac676c14e
commit 1125832623
No known key found for this signature in database
GPG key ID: E055D6A4D513575C
6 changed files with 6 additions and 6 deletions

View file

@ -302,7 +302,7 @@ OCA.Sharing.App = {
if (context.$file.attr('data-remote-id')) {
shareBase = 'remote_shares/pending'
}
$.post(OC.linkToOCS('apps/files_sharing/api/v1/' + shareBase + '/{shareId}', { shareBase, shareId }))
$.post(OC.linkToOCS('apps/files_sharing/api/v1/' + shareBase + '/{shareId}', { shareId }))
.success(function(result) {
context.fileList.remove(context.fileInfoModel.attributes.name)
}).fail(function() {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -221,7 +221,7 @@
}
var pendingRemoteShares = {
url: OC.linkToOCS('apps/files_sharing/api/v1/remote_shares', 2) + 'pending',
url: OC.linkToOCS('apps/files_sharing/api/v1/remote_shares/pending'),
/* jshint camelcase: false */
data: {
format: 'json'