1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-31 08:20:37 +01: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();
}; };