feat(service-details): display stop grace period in a human-friendly format (#1773)

pull/1744/head^2
moncho 2018-03-27 23:05:01 +02:00 committed by Anthony Lapenna
parent 80a23b5351
commit 7e26d09881
1 changed files with 1 additions and 0 deletions

View File

@ -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() {