mirror of https://github.com/portainer/portainer
Moved builder to its own submodule
parent
306d2db03e
commit
e3eb37ba56
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings'])
|
||||
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder'])
|
||||
.config(['$routeProvider', function ($routeProvider) {
|
||||
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
|
||||
$routeProvider.when('/containers/', {templateUrl: 'app/components/containers/containers.html', controller: 'ContainersController'});
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
angular.module('builder', [])
|
||||
.controller('BuilderController', ['$scope', 'Dockerfile', 'Messages',
|
||||
function($scope, Dockerfile, Messages) {
|
||||
$scope.template = 'partials/builder.html';
|
||||
}]);
|
|
@ -47,10 +47,6 @@ function getChart(id) {
|
|||
return new Chart(ctx);
|
||||
}
|
||||
|
||||
function BuilderController($scope, Dockerfile, Messages) {
|
||||
$scope.template = 'partials/builder.html';
|
||||
}
|
||||
|
||||
function failedRequestHandler(e, Messages) {
|
||||
Messages.send({class: 'text-error', data: e.data});
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<script src="app/components/images/imagesController.js"></script>
|
||||
<script src="app/components/sidebar/sidebarController.js"></script>
|
||||
<script src="app/components/settings/settingsController.js"></script>
|
||||
<script src="app/components/builder/builderController.js"></script>
|
||||
<script src="app/viewmodel.js"></script>
|
||||
|
||||
<!-- Fav and touch icons -->
|
||||
|
|
Loading…
Reference in New Issue