mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
feat(service): change update delay format to a time string in service… (#1470)
This commit is contained in:
parent
f3a23c7dd1
commit
728ef35cc1
5 changed files with 62 additions and 9 deletions
|
@ -244,7 +244,7 @@ function ($q, $scope, $transition$, $state, $location, $timeout, $anchorScroll,
|
|||
|
||||
config.UpdateConfig = {
|
||||
Parallelism: service.UpdateParallelism,
|
||||
Delay: service.UpdateDelay * 1000000000,
|
||||
Delay: ServiceHelper.translateHumanDurationToNanos(service.UpdateDelay),
|
||||
FailureAction: service.UpdateFailureAction,
|
||||
Order: service.UpdateOrder
|
||||
};
|
||||
|
@ -324,7 +324,7 @@ function ($q, $scope, $transition$, $state, $location, $timeout, $anchorScroll,
|
|||
function transformDurations(service) {
|
||||
service.RestartDelay = service.RestartDelay / 1000000000 || 5;
|
||||
service.RestartWindow = service.RestartWindow / 1000000000 || 0;
|
||||
service.UpdateDelay = service.UpdateDelay / 1000000000 || 0;
|
||||
service.UpdateDelay = ServiceHelper.translateNanosToHumanDuration(service.UpdateDelay) || '0s';
|
||||
}
|
||||
|
||||
function initView() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue