mirror of
https://github.com/nextcloud/passman.git
synced 2024-09-20 14:56:21 +08:00
Some improvements to credential filtering
This commit is contained in:
parent
75daa37155
commit
c2bd9b691e
|
@ -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
|
@ -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
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue