mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
fix(federatedfilesharing): Fix external share being deleted when accepting share
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
6916d29ed2
commit
4a07efcb4a
1 changed files with 7 additions and 7 deletions
|
|
@ -143,18 +143,18 @@ const processSharesToConfirm = function() {
|
|||
shares[index],
|
||||
false,
|
||||
function(result, share) {
|
||||
if (result) {
|
||||
// Accept
|
||||
$.post(generateUrl('/apps/files_sharing/api/externalShares'), { id: share.id })
|
||||
.then(function() {
|
||||
reloadFilesList()
|
||||
})
|
||||
} else {
|
||||
if (result === false) {
|
||||
// Delete
|
||||
$.ajax({
|
||||
url: generateUrl('/apps/files_sharing/api/externalShares/' + share.id),
|
||||
type: 'DELETE',
|
||||
})
|
||||
} else {
|
||||
// Accept
|
||||
$.post(generateUrl('/apps/files_sharing/api/externalShares'), { id: share.id })
|
||||
.then(function() {
|
||||
reloadFilesList()
|
||||
})
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue