1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

configuration is now exposed in /config endpoint (#13)

This commit is contained in:
Anthony Lapenna 2016-06-16 17:27:07 +12:00 committed by GitHub
parent f3a5251fd4
commit a7619b06ba
8 changed files with 208 additions and 12 deletions

View file

@ -1,5 +1,5 @@
angular.module('dashboard')
.controller('MasterCtrl', ['$scope', '$cookieStore', 'Settings', function ($scope, $cookieStore, Settings) {
.controller('MasterCtrl', ['$scope', '$cookieStore', 'Settings', 'Config', function ($scope, $cookieStore, Settings, Config) {
/**
* Sidebar Toggle & Cookie Control
*/
@ -9,6 +9,8 @@ angular.module('dashboard')
return window.innerWidth;
};
$scope.config = Config.get();
$scope.$watch($scope.getWidth, function(newValue, oldValue) {
if (newValue >= mobileView) {
if (angular.isDefined($cookieStore.get('toggle'))) {