From da1a5ead3971c5ac00642332a8a9a85f426518b2 Mon Sep 17 00:00:00 2001 From: Roman Usachev Date: Wed, 24 Feb 2016 10:07:59 +0300 Subject: [PATCH] Bugfixes --- app/components/container/containerController.js | 4 +--- app/shared/services.js | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/components/container/containerController.js b/app/components/container/containerController.js index fc46e45ab..8e485ca0b 100644 --- a/app/components/container/containerController.js +++ b/app/components/container/containerController.js @@ -165,7 +165,6 @@ // start new Container.start({ id: containerData.Id - // HostConfig: $scope.container.HostConfig we really need this? }, function (d) { $location.url('/containers/' + containerData.Id + '/'); Messages.send("Container started", $routeParams.id); @@ -181,7 +180,6 @@ // start new Container.start({ id: containerData.Id - // HostConfig: $scope.container.HostConfig we really need this? }, function (d) { $location.url('/containers/'+containerData.Id+'/'); Messages.send("Container started", $routeParams.id); @@ -202,7 +200,7 @@ } else { update(); - Messages.send("Container commit failed", $routeParams.id); + Messages.error("Failure", "Container commit failed."); } diff --git a/app/shared/services.js b/app/shared/services.js index ba38178e2..d2f1babf8 100644 --- a/app/shared/services.js +++ b/app/shared/services.js @@ -31,7 +31,8 @@ angular.module('dockerui.services', ['ngResource']) url: Settings.url + '/commit', params: { 'container': params.id, - 'tag': params.tag + 'tag': params.tag || null, + 'repo': params.repo || null }, data: params.config }).success(callback).error(function (data, status, headers, config) {