From d59358df40660842a6967e30518293d5939c8064 Mon Sep 17 00:00:00 2001 From: brantje Date: Sat, 24 Sep 2016 10:58:52 +0200 Subject: [PATCH] Add function to go to revisions --- js/app/controllers/credential.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js index a99b2912..4106e4c3 100644 --- a/js/app/controllers/credential.js +++ b/js/app/controllers/credential.js @@ -41,6 +41,13 @@ angular.module('passmanApp') $location.path('/vault/' + $scope.active_vault.vault_id + '/edit/' + _credential.credential_id) }; + $scope.getRevisions = function (credential) { + var _credential = angular.copy(credential); + $rootScope.$emit('app_menu', false); + SettingsService.setSetting('revision_credential', CredentialService.encryptCredential(_credential)); + $location.path('/vault/' + $scope.active_vault.vault_id + '/' + _credential.credential_id + '/revisions') + }; + $scope.shareCredential = function (credential) { var _credential = angular.copy(credential); $rootScope.$emit('app_menu', false);