mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-11 01:34:12 +08:00
Add function to go to revisions
This commit is contained in:
parent
2cffbcefd0
commit
d59358df40
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue