mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-09 21:16:18 +08:00
fixed trashbin-navigation behaviour
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
parent
9e88107e11
commit
cb4def26ea
3 changed files with 17 additions and 2 deletions
|
@ -380,9 +380,11 @@
|
||||||
case "strength_low": $scope.filterStrength(0,1); break;
|
case "strength_low": $scope.filterStrength(0,1); break;
|
||||||
case "expired": $scope.filterExpired(); break;
|
case "expired": $scope.filterExpired(); break;
|
||||||
case "all": $scope.filterAll(); break;
|
case "all": $scope.filterAll(); break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.delete_time=0;
|
||||||
|
$rootScope.$broadcast('release_trashbin', $scope.delete_time);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -403,7 +405,15 @@
|
||||||
$scope.filterAll = function(){
|
$scope.filterAll = function(){
|
||||||
$scope.selectedtags=[];
|
$scope.selectedtags=[];
|
||||||
$scope.filterOptions.filterText="";
|
$scope.filterOptions.filterText="";
|
||||||
$scope.filtered_credentials=$scope.filterHidden($scope.active_vault.credentials);
|
var creds_filtered=[];
|
||||||
|
|
||||||
|
for (var i = 0; i < $scope.active_vault.credentials.length; i++) {
|
||||||
|
if($scope.active_vault.credentials[i].delete_time>0){
|
||||||
|
creds_filtered.push($scope.active_vault.credentials[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.filtered_credentials=$scope.filterHidden(creds_filtered);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.filterStrength = function(strength_min, strength_max){
|
$scope.filterStrength = function(strength_min, strength_max){
|
||||||
|
|
|
@ -152,6 +152,10 @@
|
||||||
$scope.available_tags = TagService.getTags();
|
$scope.available_tags = TagService.getTags();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
$scope.$on('release_trashbin', function(event, args) {
|
||||||
|
$scope.delete_time=args;
|
||||||
|
});
|
||||||
|
|
||||||
$scope.toggleDeleteTime = function () {
|
$scope.toggleDeleteTime = function () {
|
||||||
if ($scope.delete_time > 0) {
|
if ($scope.delete_time > 0) {
|
||||||
$scope.delete_time = 0;
|
$scope.delete_time = 0;
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
a {
|
a {
|
||||||
&.active{
|
&.active{
|
||||||
//border-left: 3px solid #0082c9;
|
//border-left: 3px solid #0082c9;
|
||||||
|
background-image: var(--icon-delete-e9322d);
|
||||||
}
|
}
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
|
|
Loading…
Add table
Reference in a new issue