Some improvements to credential filtering

This commit is contained in:
brantje 2016-10-07 12:16:44 +02:00
parent 75daa37155
commit c2bd9b691e
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F
6 changed files with 15 additions and 5 deletions

View file

@ -373,7 +373,11 @@
overflow-y: auto; }
#app-content #app-content-wrapper .app_sidebar h2 {
margin-bottom: 10px;
font-weight: 400; }
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 90%; }
#app-content #app-content-wrapper .app_sidebar .close.icon-close {
position: absolute;
top: 10px;

File diff suppressed because one or more lines are too long

View file

@ -286,12 +286,14 @@ angular.module('passmanApp')
$scope.filtered_credentials = [];
$scope.$watch('[selectedtags, filterOptions, delete_time]', function(){
$scope.$watch('[selectedtags, filterOptions, delete_time, show_spinner]', function(){
var credentials = angular.copy($scope.active_vault.credentials);
var filtered_credentials = $filter('credentialSearch')(credentials,$scope.filterOptions);
filtered_credentials = $filter('tagFilter')(filtered_credentials,$scope.selectedtags);
filtered_credentials = $filter('filter')(filtered_credentials, {hidden: 0});
$scope.filtered_credentials = filtered_credentials;
}, true);
$scope.selectedtags = [];
var to;
$rootScope.$on('selected_tags_updated', function (evt, _sTags) {

File diff suppressed because one or more lines are too long

View file

@ -288,6 +288,10 @@
h2{
margin-bottom: 10px;
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 90%;
}
.close.icon-close {
position: absolute;

View file

@ -40,7 +40,7 @@
<table class="credential-table"
ng-if="view_mode === 'list'">
<tr ng-repeat="credential in filtered_credentials | orderBy:'label'"
ng-if="credential.hidden == 0 && showCredentialRow(credential)"
ng-if="showCredentialRow(credential)"
ng-click="selectCredential(credential)"
ng-class="{'selected': selectedCredential.credential_id == credential.credential_id}">
<td>