From cc018d38db3aacc2e6d4378c4ba84762767aa95e Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Fri, 15 Nov 2024 11:13:55 +0100 Subject: [PATCH] fix(app subscription): change enum value to start app activation (#1344) https://github.com/eclipse-tractusx/portal-frontend/issues/1343 --- .../AppSubscription/AppSubscriptionDetailOverlay/index.tsx | 2 +- .../shared/templates/Subscription/SubscriptionElements.tsx | 4 +++- src/features/appSubscription/appSubscriptionApiSlice.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/pages/AppSubscription/AppSubscriptionDetailOverlay/index.tsx b/src/components/pages/AppSubscription/AppSubscriptionDetailOverlay/index.tsx index d5ace5c51..37b72c2aa 100644 --- a/src/components/pages/AppSubscription/AppSubscriptionDetailOverlay/index.tsx +++ b/src/components/pages/AppSubscription/AppSubscriptionDetailOverlay/index.tsx @@ -109,7 +109,7 @@ const AppSubscriptionDetailOverlay = ({ const getStatus = () => { if ( - data?.processStepTypeId === ProcessStep.START_AUTOSETUP || + data?.processStepTypeId === ProcessStep.AWAIT_START_AUTOSETUP || data?.processStepTypeId === ProcessStep.TRIGGER_PROVIDER ) { return t('content.appSubscription.detailOverlay.subscriptionInitiated') diff --git a/src/components/shared/templates/Subscription/SubscriptionElements.tsx b/src/components/shared/templates/Subscription/SubscriptionElements.tsx index 001f7ab4c..9feb0d323 100644 --- a/src/components/shared/templates/Subscription/SubscriptionElements.tsx +++ b/src/components/shared/templates/Subscription/SubscriptionElements.tsx @@ -192,7 +192,9 @@ export default function SubscriptionElements({ } else if ( subscription.offerSubscriptionStatus === SubscriptionStatus.PENDING ) { - if (subscription.processStepTypeId === ProcessStep.START_AUTOSETUP) { + if ( + subscription.processStepTypeId === ProcessStep.AWAIT_START_AUTOSETUP + ) { return ( <>