From 349043c2c3902fd2457563b416f66f783b6b54be Mon Sep 17 00:00:00 2001 From: Marcos Zuriaga Date: Mon, 26 Sep 2016 14:29:36 +0200 Subject: [PATCH] Rename var so sander likes it --- js/app/controllers/share_settings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app/controllers/share_settings.js b/js/app/controllers/share_settings.js index e4bd3c67..2d55a69d 100644 --- a/js/app/controllers/share_settings.js +++ b/js/app/controllers/share_settings.js @@ -4,7 +4,7 @@ angular.module('passmanApp') .controller('SharingSettingsCtrl', ['$scope', 'VaultService', 'CredentialService', 'SettingsService', '$location', '$routeParams', 'ShareService', 'EncryptService', function ($scope, VaultService, CredentialService, SettingsService, $location, $routeParams, ShareService, EncryptService) { - $scope.vault = VaultService.getActiveVault(); + $scope.active_vault = VaultService.getActiveVault(); $scope.sharing_keys = ShareService.getSharingKeys(); $scope.progress = 1; @@ -23,10 +23,10 @@ angular.module('passmanApp') var pem = ShareService.rsaKeyPairToPEM(kp) - $scope.vault.private_sharing_key = EncryptService.encryptString(pem.privateKey); - $scope.vault.public_sharing_key = pem.publicKey; + $scope.active_vault.private_sharing_key = EncryptService.encryptString(pem.privateKey); + $scope.active_vault.public_sharing_key = pem.publicKey; - VaultService.updateSharingKeys($scope.vault).then(function (result) { + VaultService.updateSharingKeys($scope.active_vault).then(function (result) { $scope.sharing_keys = ShareService.getSharingKeys(); }) });