From 7e26d09881fe06c0e8fc8aace361604c4edbe9ff Mon Sep 17 00:00:00 2001 From: moncho Date: Tue, 27 Mar 2018 23:05:01 +0200 Subject: [PATCH] feat(service-details): display stop grace period in a human-friendly format (#1773) --- app/docker/views/services/edit/serviceController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/docker/views/services/edit/serviceController.js b/app/docker/views/services/edit/serviceController.js index f60c8f80c..81396a80b 100644 --- a/app/docker/views/services/edit/serviceController.js +++ b/app/docker/views/services/edit/serviceController.js @@ -402,6 +402,7 @@ function ($q, $scope, $transition$, $state, $location, $timeout, $anchorScroll, service.RestartDelay = ServiceHelper.translateNanosToHumanDuration(service.RestartDelay) || '5s'; service.RestartWindow = ServiceHelper.translateNanosToHumanDuration(service.RestartWindow) || '0s'; service.UpdateDelay = ServiceHelper.translateNanosToHumanDuration(service.UpdateDelay) || '0s'; + service.StopGracePeriod = service.StopGracePeriod ? ServiceHelper.translateNanosToHumanDuration(service.StopGracePeriod) : ''; } function initView() {