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:
parent
24bf1363ab
commit
551217ea38
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user