mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-17 14:19:45 +08:00
Fix selected tag filter doesn't stick after returning from sharing or editing (Fixes #255)
This commit is contained in:
parent
86be5a270e
commit
ca4f6dfeaf
3 changed files with 6 additions and 2 deletions
|
|
@ -102,7 +102,7 @@
|
|||
}
|
||||
angular.merge($scope.active_vault.credentials, _credentials);
|
||||
$scope.show_spinner = false;
|
||||
|
||||
$rootScope.$broadcast('credentials_loaded');
|
||||
if(!vault.private_sharing_key){
|
||||
var key_size = 1024;
|
||||
ShareService.generateRSAKeys(key_size).then(function (kp) {
|
||||
|
|
|
|||
|
|
@ -81,6 +81,10 @@
|
|||
$scope.selectedTags.push(tag);
|
||||
};
|
||||
|
||||
$rootScope.$on('credentials_loaded', function () {
|
||||
$rootScope.$broadcast('selected_tags_updated', $scope.selectedTags);
|
||||
});
|
||||
|
||||
$scope.available_tags = TagService.getTags();
|
||||
|
||||
$scope.$watch(function () {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
if(!scope.vault.hasOwnProperty('credentials')){
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
angular.forEach(scope.vault.credentials, function (credential) {
|
||||
var pos = scope.filteredCredentials.map(function(c) { return c.guid; }).indexOf(credential.guid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue