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:
parent
f3a5251fd4
commit
a7619b06ba
8 changed files with 208 additions and 12 deletions
|
@ -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'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue