Add function to go to revisions

This commit is contained in:
brantje 2016-09-24 10:58:52 +02:00
parent 2cffbcefd0
commit d59358df40

View file

@ -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);