From 90e2cd1d911dccd56f8bbce0829d6662435744e6 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Sat, 14 Sep 2024 08:57:07 -0400 Subject: [PATCH] update argo-ui once more for deprecated durationMs removal Signed-off-by: Anton Gilgur --- .../application-deployment-history.tsx | 6 +++--- .../application-operation-state.tsx | 5 +---- ui/yarn.lock | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/src/app/applications/components/application-deployment-history/application-deployment-history.tsx b/ui/src/app/applications/components/application-deployment-history/application-deployment-history.tsx index 9b5e0b29561dd..bb57e0e2a8618 100644 --- a/ui/src/app/applications/components/application-deployment-history/application-deployment-history.tsx +++ b/ui/src/app/applications/components/application-deployment-history/application-deployment-history.tsx @@ -24,7 +24,7 @@ export const ApplicationDeploymentHistory = ({ const recentDeployments = deployments.map((info, i) => { const nextDeployedAt = i === 0 ? null : deployments[i - 1].deployedAt; const runEnd = nextDeployedAt ? moment(nextDeployedAt) : moment(); - return {...info, nextDeployedAt, durationMs: runEnd.diff(moment(info.deployedAt)) / 1000}; + return {...info, nextDeployedAt, durationS: runEnd.diff(moment(info.deployedAt)) / 1000}; }); return (
@@ -40,7 +40,7 @@ export const ApplicationDeploymentHistory = ({
Time to deploy:
- {(info.deployStartedAt && ) || 'Unknown'} + {(info.deployStartedAt && ) || 'Unknown'}

@@ -52,7 +52,7 @@ export const ApplicationDeploymentHistory = ({
Active for:
- +
diff --git a/ui/src/app/applications/components/application-operation-state/application-operation-state.tsx b/ui/src/app/applications/components/application-operation-state/application-operation-state.tsx index 441942cd6e899..e335482a2cfba 100644 --- a/ui/src/app/applications/components/application-operation-state/application-operation-state.tsx +++ b/ui/src/app/applications/components/application-operation-state/application-operation-state.tsx @@ -61,10 +61,7 @@ export const ApplicationOperationState: React.StatelessComponent = ({appl value: ( {time => ( - + )} ) diff --git a/ui/yarn.lock b/ui/yarn.lock index 308e6735871e1..4b9999a62114f 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -2893,7 +2893,7 @@ arg@^4.1.0: "argo-ui@git+https://github.com/argoproj/argo-ui.git": version "1.0.0" - resolved "git+https://github.com/argoproj/argo-ui.git#a7b01f9f009aa9161da21f450b5aab2f0732eb74" + resolved "git+https://github.com/argoproj/argo-ui.git#d9a4285dc254bc473b9f26f5d72655296233f003" dependencies: "@fortawesome/fontawesome-free" "^6.2.1" "@tippy.js/react" "^3.1.1"