mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix: incorrect DELETE on federated-share acceptance
Signed-off-by: Mahdi Baghbani <mahdi.baghbani1@gamil.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
04c64faaa5
commit
0eca4d508b
3 changed files with 5 additions and 4 deletions
|
|
@ -35,7 +35,8 @@ window.OCA.Sharing.showAddExternalDialog = function(share, passwordProtected, ca
|
|||
.replace(/\/$/, '') // remove trailing slash
|
||||
|
||||
showRemoteShareDialog(name, owner, remote, passwordProtected)
|
||||
.then((result, password) => callback(result, { ...share, password }))
|
||||
// eslint-disable-next-line n/no-callback-literal
|
||||
.then((password) => callback(true, { ...share, password }))
|
||||
// eslint-disable-next-line n/no-callback-literal
|
||||
.catch(() => callback(false, share))
|
||||
}
|
||||
|
|
|
|||
4
dist/federatedfilesharing-external.js
vendored
4
dist/federatedfilesharing-external.js
vendored
File diff suppressed because one or more lines are too long
2
dist/federatedfilesharing-external.js.map
vendored
2
dist/federatedfilesharing-external.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue