filter for unassigned collection grouping

This commit is contained in:
Kyle Spearrin 2018-04-03 08:35:45 -04:00
parent 24bf1363ab
commit 551217ea38
1 changed files with 10 additions and 3 deletions

View File

@ -207,9 +207,16 @@
resetSelected();
$scope.selectedCollection = col;
$scope.selectedIcon = 'fa-cube';
$scope.filter = function (c) {
return c.collectionIds && c.collectionIds.indexOf(col.id) > -1;
};
if (col.id) {
$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();
};