added default library layout setting

so you can decide if you show list or grid by default
This commit is contained in:
Alex Norman 2013-12-03 10:53:41 -08:00
parent eebdb25a39
commit fc231e1c0b
4 changed files with 15 additions and 3 deletions

View file

@ -32,7 +32,8 @@ function SubsonicCtrl($scope, $rootScope, $location, $window, $routeParams, util
$scope.sortSubsonicAlbums(newValue);
}
});
$scope.selectedLayout = 'grid';
$scope.selectedLayout = globals.settings.DefaultLibraryLayout;
//not sure how to just grab the layouts hash from the settings controller
$scope.Layouts = [
{ id: "list", name: "List" },
{ id: "grid", name: "Grid" },