mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-26 01:24:35 +08:00
Fix for destroying a credential
This commit is contained in:
parent
e402602256
commit
a7b5487465
1 changed files with 2 additions and 2 deletions
|
@ -281,11 +281,11 @@
|
|||
|
||||
$scope.destroyCredential = function (credential) {
|
||||
var _credential = angular.copy(credential);
|
||||
CredentialService.destroyCredential(_credential.credential_id).then(function () {
|
||||
CredentialService.destroyCredential(_credential.guid).then(function () {
|
||||
for (var i = 0; i < $scope.active_vault.credentials.length; i++) {
|
||||
if ($scope.active_vault.credentials[i].credential_id === credential.credential_id) {
|
||||
$scope.active_vault.credentials.splice(i, 1);
|
||||
NotificationService.showNotification($translate.instant('credential.destroyed)'), 5000);
|
||||
NotificationService.showNotification($translate.instant('credential.destroyed'), 5000);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue