mirror of
https://github.com/nextcloud/server.git
synced 2026-05-20 17:15:46 -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
0c59d041ce
commit
efec2841db
1 changed files with 4 additions and 4 deletions
|
|
@ -138,13 +138,13 @@ async function processSharesToConfirm() {
|
|||
shares[index],
|
||||
false,
|
||||
function(result, share) {
|
||||
if (result) {
|
||||
if (result === false) {
|
||||
// Delete
|
||||
axios.delete(generateUrl('/apps/files_sharing/api/externalShares/' + share.id))
|
||||
} else {
|
||||
// Accept
|
||||
axios.post(generateUrl('/apps/files_sharing/api/externalShares'), { id: share.id })
|
||||
.then(() => reloadFilesList())
|
||||
} else {
|
||||
// Delete
|
||||
axios.delete(generateUrl('/apps/files_sharing/api/externalShares/' + share.id))
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue