adjust search minimum down to 2 characters

This commit is contained in:
Kyle Spearrin 2016-12-06 22:54:00 -05:00
parent b5f3a1254b
commit b4d41c6808
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@
};
$scope.searchSites = function () {
if (!$scope.searchText || $scope.searchText.length < 3) {
if (!$scope.searchText || $scope.searchText.length < 2) {
return;
}

View File

@ -8,7 +8,7 @@
</div>
</div>
<div class="content content-tabs">
<div ng-if="vaultSites.length && vaultSites.length >= 100 && vaultFolders.length && (!searchText || searchText.length < 3)">
<div ng-if="vaultSites.length && vaultSites.length >= 100 && vaultFolders.length && (!searchText || searchText.length < 2)">
<div class="list">
<div class="list-section">
<div class="list-section-header">
@ -22,7 +22,7 @@
</div>
</div>
</div>
<div ng-if="vaultSites.length && (vaultSites.length < 100 || (searchText && searchText.length >= 3))">
<div ng-if="vaultSites.length && (vaultSites.length < 100 || (searchText && searchText.length >= 2))">
<div class="list">
<div class="list-grouped" ng-repeat="folder in vaultFolders | orderBy: folderSort" ng-show="vaultFolders.length">
<div ng-if="(vaultSites | filter: { folderId: folder.id } | filter: searchSites()).length">