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:
Mahdi Baghbani 2025-05-17 11:18:14 +00:00 committed by nextcloud-command
parent 04c64faaa5
commit 0eca4d508b
3 changed files with 5 additions and 4 deletions

View file

@ -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))
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long