1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02:00

filter for unassigned collection grouping

This commit is contained in:
Kyle Spearrin 2018-04-03 08:35:45 -04:00
parent 24bf1363ab
commit 551217ea38

View File

@ -207,9 +207,16 @@
resetSelected(); resetSelected();
$scope.selectedCollection = col; $scope.selectedCollection = col;
$scope.selectedIcon = 'fa-cube'; $scope.selectedIcon = 'fa-cube';
$scope.filter = function (c) { if (col.id) {
return c.collectionIds && c.collectionIds.indexOf(col.id) > -1; $scope.filter = function (c) {
}; return c.collectionIds && c.collectionIds.indexOf(col.id) > -1;
};
}
else {
$scope.filter = function (c) {
return !c.collectionIds || c.collectionIds.length === 0;
};
}
fixLayout(); fixLayout();
}; };