init storage

This commit is contained in:
Kyle Spearrin 2017-11-29 22:47:21 -05:00
parent 62e1dbb642
commit e307d1e87d
1 changed files with 8 additions and 0 deletions

View File

@ -162,6 +162,10 @@
};
$scope.collapseAll = function () {
if (!$localStorage.collapsedFolders) {
$localStorage.collapsedFolders = {};
}
$localStorage.collapsedFolders.none = true;
$localStorage.collapsedFolders.favorite = true;
@ -178,6 +182,10 @@
};
$scope.expandAll = function () {
if (!$localStorage.collapsedFolders) {
$localStorage.collapsedFolders = {};
}
delete $localStorage.collapsedFolders.none;
delete $localStorage.collapsedFolders.favorite;