mirror of
https://github.com/bitwarden/web
synced 2025-12-11 05:43:16 +00:00
filter for unassigned collection grouping
This commit is contained in:
@@ -207,9 +207,16 @@
|
|||||||
resetSelected();
|
resetSelected();
|
||||||
$scope.selectedCollection = col;
|
$scope.selectedCollection = col;
|
||||||
$scope.selectedIcon = 'fa-cube';
|
$scope.selectedIcon = 'fa-cube';
|
||||||
|
if (col.id) {
|
||||||
$scope.filter = function (c) {
|
$scope.filter = function (c) {
|
||||||
return c.collectionIds && c.collectionIds.indexOf(col.id) > -1;
|
return c.collectionIds && c.collectionIds.indexOf(col.id) > -1;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$scope.filter = function (c) {
|
||||||
|
return !c.collectionIds || c.collectionIds.length === 0;
|
||||||
|
};
|
||||||
|
}
|
||||||
fixLayout();
|
fixLayout();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user