mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-10 06:01:32 +08:00
Removed hidden passwords from extended filters
This commit is contained in:
parent
e092c78563
commit
5ef92fc1e9
1 changed files with 15 additions and 4 deletions
|
|
@ -388,7 +388,7 @@
|
||||||
$scope.filterAll = function(){
|
$scope.filterAll = function(){
|
||||||
$scope.selectedtags=[];
|
$scope.selectedtags=[];
|
||||||
$scope.filterOptions.filterText="";
|
$scope.filterOptions.filterText="";
|
||||||
$scope.filtered_credentials=$scope.active_vault.credentials;
|
$scope.filtered_credentials=$scope.filterHidden($scope.active_vault.credentials);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.filterStrength = function(strength_min, strength_max){
|
$scope.filterStrength = function(strength_min, strength_max){
|
||||||
|
|
@ -402,7 +402,7 @@
|
||||||
postFiltered.push(initialCredentials[i]);
|
postFiltered.push(initialCredentials[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$scope.filtered_credentials=postFiltered;
|
$scope.filtered_credentials=$scope.filterHidden(postFiltered);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.filterExpired = function(){
|
$scope.filterExpired = function(){
|
||||||
|
|
@ -417,9 +417,20 @@
|
||||||
postFiltered.push(initialCredentials[i]);
|
postFiltered.push(initialCredentials[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$scope.filtered_credentials=postFiltered;
|
$scope.filtered_credentials=$scope.filterHidden(postFiltered);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.filterHidden = function(list){
|
||||||
|
var list_without_hidden=[];
|
||||||
|
for (var i = 0; i < list.length; i++) {
|
||||||
|
if(list[i].hidden!==1){
|
||||||
|
list_without_hidden.push(list[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list_without_hidden;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.selectedtags = [];
|
$scope.selectedtags = [];
|
||||||
var to;
|
var to;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue