From a380fd9adc3062080a0b39dedf4b1f3c74831a2a Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 23 May 2017 20:43:58 +0200 Subject: [PATCH] fix(image-details): fix invalid CMD with images using HEALTHCHECK (#879) --- app/components/image/image.html | 4 ++-- app/components/image/imageController.js | 4 ++-- app/models/imageDetails.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/image/image.html b/app/components/image/image.html index 491b14c9d..4f10a93e6 100644 --- a/app/components/image/image.html +++ b/app/components/image/image.html @@ -19,10 +19,10 @@
{{ tag }} - + - + diff --git a/app/components/image/imageController.js b/app/components/image/imageController.js index 9a5ac8fba..907b664c3 100644 --- a/app/components/image/imageController.js +++ b/app/components/image/imageController.js @@ -24,7 +24,7 @@ function ($scope, $stateParams, $state, ImageService, Notifications) { }); }; - $scope.pushImage = function(tag) { + $scope.pushTag = function(tag) { $('#loadingViewSpinner').show(); ImageService.pushImage(tag) .then(function success() { @@ -38,7 +38,7 @@ function ($scope, $stateParams, $state, ImageService, Notifications) { }); }; - $scope.pullImage = function(tag) { + $scope.pullTag = function(tag) { $('#loadingViewSpinner').show(); ImageService.pullTag(tag) diff --git a/app/models/imageDetails.js b/app/models/imageDetails.js index df7da6183..7864f10f6 100644 --- a/app/models/imageDetails.js +++ b/app/models/imageDetails.js @@ -11,7 +11,7 @@ function ImageDetailsViewModel(data) { this.Os = data.Os; this.Architecture = data.Architecture; this.Author = data.Author; - this.Command = data.ContainerConfig.Cmd; + this.Command = data.Config.Cmd; this.Entrypoint = data.ContainerConfig.Entrypoint ? data.ContainerConfig.Entrypoint : ''; this.ExposedPorts = data.ContainerConfig.ExposedPorts ? Object.keys(data.ContainerConfig.ExposedPorts) : []; this.Volumes = data.ContainerConfig.Volumes ? Object.keys(data.ContainerConfig.Volumes) : [];