mirror of
https://github.com/nextcloud/passman.git
synced 2025-09-26 14:54:49 +08:00
Remove share request when accepted
This commit is contained in:
parent
993fac55db
commit
93fee014b4
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,6 @@ angular.module('passmanApp')
|
|||
}
|
||||
|
||||
ShareService.getPendingRequests().then(function (shareRequests) {
|
||||
console.log(shareRequests)
|
||||
if(shareRequests.length > 0){
|
||||
$scope.incoming_share_requests = shareRequests;
|
||||
jQuery('.share_popup').dialog({
|
||||
|
@ -84,6 +83,8 @@ angular.module('passmanApp')
|
|||
crypted_shared_key = EncryptService.encryptString(crypted_shared_key);
|
||||
|
||||
ShareService.saveSharingRequest(share_request, crypted_shared_key).then(function (result) {
|
||||
var idx = $scope.incoming_share_requests.indexOf(share_request);
|
||||
$scope.incoming_share_requests.splice(idx, 1);
|
||||
console.log(result)
|
||||
})
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue