mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-10 17:27:40 +08:00
Use private var
This commit is contained in:
parent
c16dbcd818
commit
d21d75d976
1 changed files with 3 additions and 4 deletions
|
@ -32,15 +32,14 @@ angular.module('passmanApp')
|
|||
};
|
||||
|
||||
$scope.editCredential = function(credential){
|
||||
var credential = angular.copy(credential);
|
||||
var _credential = angular.copy(credential);
|
||||
$rootScope.$emit('app_menu', false);
|
||||
SettingsService.setSetting('edit_credential', CredentialService.encryptCredential(credential));
|
||||
$location.path('/vault/'+ $scope.active_vault.vault_id +'/edit/'+ credential.credential_id)
|
||||
SettingsService.setSetting('edit_credential', CredentialService.encryptCredential(_credential));
|
||||
$location.path('/vault/'+ $scope.active_vault.vault_id +'/edit/'+ _credential.credential_id)
|
||||
};
|
||||
|
||||
$scope.selectedCredential = false;
|
||||
$scope.selectCredential = function (credential) {
|
||||
console.log(credential);
|
||||
$scope.selectedCredential = CredentialService.decryptCredential(angular.copy(credential));
|
||||
$rootScope.$emit('app_menu', true);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue