|
|
|
@ -214,13 +214,13 @@ function ContainerController($scope, $routeParams, $location, Container, Message
|
|
|
|
|
// Controller for the list of containers
|
|
|
|
|
function ContainersController($scope, Container, Settings, Messages, ViewSpinner) {
|
|
|
|
|
$scope.predicate = '-Created';
|
|
|
|
|
$scope.toggle = false;
|
|
|
|
|
$scope.toggle = false;
|
|
|
|
|
$scope.displayAll = Settings.displayAll;
|
|
|
|
|
|
|
|
|
|
var update = function(data) {
|
|
|
|
|
ViewSpinner.spin();
|
|
|
|
|
Container.query(data, function(d) {
|
|
|
|
|
$scope.containers = d.map(function(item) {
|
|
|
|
|
$scope.containers = d.map(function(item) {
|
|
|
|
|
return new ContainerViewModel(item); });
|
|
|
|
|
ViewSpinner.stop();
|
|
|
|
|
});
|
|
|
|
@ -258,7 +258,7 @@ function ContainersController($scope, Container, Settings, Messages, ViewSpinner
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.toggleGetAll = function() {
|
|
|
|
|
Settings.displayAll = $scope.displayAll;
|
|
|
|
|
Settings.displayAll = $scope.displayAll;
|
|
|
|
|
update({all: Settings.displayAll ? 1 : 0});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -395,6 +395,7 @@ function ImageController($scope, $q, $routeParams, $location, Image, Container,
|
|
|
|
|
function StartContainerController($scope, $routeParams, $location, Container, Messages) {
|
|
|
|
|
$scope.template = 'partials/startcontainer.html';
|
|
|
|
|
$scope.config = {
|
|
|
|
|
name: '',
|
|
|
|
|
memory: 0,
|
|
|
|
|
memorySwap: 0,
|
|
|
|
|
env: '',
|
|
|
|
@ -415,6 +416,7 @@ function StartContainerController($scope, $routeParams, $location, Container, Me
|
|
|
|
|
|
|
|
|
|
Container.create({
|
|
|
|
|
Image: id,
|
|
|
|
|
name: $scope.config.name,
|
|
|
|
|
Memory: $scope.config.memory,
|
|
|
|
|
MemorySwap: $scope.config.memorySwap,
|
|
|
|
|
Cmd: cmds,
|
|
|
|
|