diff --git a/api/portainer.go b/api/portainer.go index 801b89e9f..b4772f771 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -176,7 +176,7 @@ type ( const ( // APIVersion is the version number of Portainer API. - APIVersion = "1.12.3" + APIVersion = "1.12.4" // DBVersion is the version number of Portainer database. DBVersion = 1 ) diff --git a/app/app.js b/app/app.js index b51d1c871..cb55a4f2d 100644 --- a/app/app.js +++ b/app/app.js @@ -594,4 +594,4 @@ angular.module('portainer', [ .constant('ENDPOINTS_ENDPOINT', 'api/endpoints') .constant('TEMPLATES_ENDPOINT', 'api/templates') .constant('PAGINATION_MAX_ITEMS', 10) - .constant('UI_VERSION', 'v1.12.3'); + .constant('UI_VERSION', 'v1.12.4'); diff --git a/app/components/service/serviceController.js b/app/components/service/serviceController.js index fff240cc1..961aa17b3 100644 --- a/app/components/service/serviceController.js +++ b/app/components/service/serviceController.js @@ -157,7 +157,7 @@ function ($scope, $stateParams, $state, $location, $anchorScroll, Service, Servi }; $scope.updateService = function updateService(service) { - $('#loadServicesSpinner').show(); + $('#loadingViewSpinner').show(); var config = ServiceHelper.serviceToConfig(service.Model); config.Name = service.Name; config.Labels = translateServiceLabelsToLabels(service.ServiceLabels); @@ -198,11 +198,13 @@ function ($scope, $stateParams, $state, $location, $anchorScroll, Service, Servi Window: service.RestartWindow }; - service.Ports.forEach(function (binding) { - if (binding.PublishedPort === null || binding.PublishedPort === '') { - delete binding.PublishedPort; - } - }); + if (service.Ports) { + service.Ports.forEach(function (binding) { + if (binding.PublishedPort === null || binding.PublishedPort === '') { + delete binding.PublishedPort; + } + }); + } config.EndpointSpec = { Mode: config.EndpointSpec.Mode || 'vip', @@ -210,12 +212,12 @@ function ($scope, $stateParams, $state, $location, $anchorScroll, Service, Servi }; Service.update({ id: service.Id, version: service.Version }, config, function (data) { - $('#loadServicesSpinner').hide(); + $('#loadingViewSpinner').hide(); Messages.send("Service successfully updated", "Service updated"); $scope.cancelChanges({}); fetchServiceDetails(); }, function (e) { - $('#loadServicesSpinner').hide(); + $('#loadingViewSpinner').hide(); Messages.error("Failure", e, "Unable to update service"); }); }; diff --git a/bower.json b/bower.json index 993ec2765..7bb9b5a25 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "portainer", - "version": "1.12.3", + "version": "1.12.4", "homepage": "https://github.com/portainer/portainer", "authors": [ "Anthony Lapenna " diff --git a/package.json b/package.json index cce68414c..1432aacd8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Portainer.io", "name": "portainer", "homepage": "http://portainer.io", - "version": "1.12.3", + "version": "1.12.4", "repository": { "type": "git", "url": "git@github.com:portainer/portainer.git"