mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
Moved sidebar to its own submodule
This commit is contained in:
parent
57fef1c958
commit
604fd1de3b
5 changed files with 13 additions and 11 deletions
11
app/components/sidebar/sidebarController.js
Normal file
11
app/components/sidebar/sidebarController.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
angular.module('sidebar', [])
|
||||
.controller('SideBarController', ['$scope', 'Container', 'Settings',
|
||||
function($scope, Container, Settings) {
|
||||
$scope.template = 'partials/sidebar.html';
|
||||
$scope.containers = [];
|
||||
$scope.endpoint = Settings.endpoint;
|
||||
|
||||
Container.query({all: 0}, function(d) {
|
||||
$scope.containers = d;
|
||||
});
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue