mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
Moved settings to its own submodule
This commit is contained in:
parent
604fd1de3b
commit
306d2db03e
5 changed files with 14 additions and 12 deletions
11
app/components/settings/settingsController.js
Normal file
11
app/components/settings/settingsController.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
angular.module('settings', [])
|
||||
.controller('SettingsController', ['$scope', 'System', 'Docker', 'Settings', 'Messages',
|
||||
function($scope, System, Docker, Settings, Messages) {
|
||||
$scope.info = {};
|
||||
$scope.docker = {};
|
||||
$scope.endpoint = Settings.endpoint;
|
||||
$scope.apiVersion = Settings.version;
|
||||
|
||||
Docker.get({}, function(d) { $scope.docker = d; });
|
||||
System.get({}, function(d) { $scope.info = d; });
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue