Skip to content

Commit

Permalink
fix(app subscription): fix showing of incorrect status (eclipse-tract…
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalgaurav-bmw authored Dec 13, 2024
1 parent b2f4063 commit 5913cba
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,7 @@
"success": "Success",
"pending": "Das Abonnement steht noch aus",
"active": "Das Abonnement ist aktiv",
"inactive": "Das Abonnement ist inaktiv",
"process": "Das Abonnement ist in Bearbeitung",
"tabs": {
"request": "Request",
Expand Down
1 change: 1 addition & 0 deletions src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,7 @@
"success": "Success",
"pending": "Subscription is Pending",
"active": "Subscription is Active",
"inactive": "Subscription is Inactive",
"process": "Subscription is in Progress",
"tabs": {
"request": "Request",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@
.active {
color: #5bb52e;
}
.inactive {
color: #c20909;
}
.pending {
color: #989898;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,18 @@ export default function SubscriptionElements({
<AddTaskIcon className="statusIcon active" />
</Tooltips>
)
} else if (
subscription.offerSubscriptionStatus === SubscriptionStatus.INACTIVE
) {
return (
<Tooltips
color="dark"
tooltipPlacement="top-start"
tooltipText={t('content.appSubscription.inactive')}
>
<HistoryIcon className="statusIcon inactive" />
</Tooltips>
)
} else if (
subscription.offerSubscriptionStatus === SubscriptionStatus.PENDING
) {
Expand Down

0 comments on commit 5913cba

Please sign in to comment.