From a7b54874655704b50ca73f5affcbf1d7a12f5434 Mon Sep 17 00:00:00 2001 From: brantje Date: Wed, 28 Dec 2016 01:48:52 +0100 Subject: [PATCH] Fix for destroying a credential --- js/app/controllers/credential.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js index 9da82b14..aa06050f 100644 --- a/js/app/controllers/credential.js +++ b/js/app/controllers/credential.js @@ -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; } }