Stores the compact mode state in the local storage

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
Michael Weimann
2018-08-29 15:37:56 +02:00
parent e53c623759
commit b20ea4dea1
4 changed files with 34 additions and 13 deletions

View File

@@ -117,6 +117,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
$scope.toggleCompactMode = function() {
$rootScope.compactMode = !$rootScope.compactMode;
localStorage.setItem('deck.compactMode', JSON.stringify($rootScope.compactMode));
};
$scope.stacksData = StackService;