mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
init storage
This commit is contained in:
parent
62e1dbb642
commit
e307d1e87d
@ -162,6 +162,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.collapseAll = function () {
|
$scope.collapseAll = function () {
|
||||||
|
if (!$localStorage.collapsedFolders) {
|
||||||
|
$localStorage.collapsedFolders = {};
|
||||||
|
}
|
||||||
|
|
||||||
$localStorage.collapsedFolders.none = true;
|
$localStorage.collapsedFolders.none = true;
|
||||||
$localStorage.collapsedFolders.favorite = true;
|
$localStorage.collapsedFolders.favorite = true;
|
||||||
|
|
||||||
@ -178,6 +182,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.expandAll = function () {
|
$scope.expandAll = function () {
|
||||||
|
if (!$localStorage.collapsedFolders) {
|
||||||
|
$localStorage.collapsedFolders = {};
|
||||||
|
}
|
||||||
|
|
||||||
delete $localStorage.collapsedFolders.none;
|
delete $localStorage.collapsedFolders.none;
|
||||||
delete $localStorage.collapsedFolders.favorite;
|
delete $localStorage.collapsedFolders.favorite;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user