Skip to content

Commit

Permalink
fix(service-list): display deployment instead of service status for d…
Browse files Browse the repository at this point in the history
…b managed (#1805)
  • Loading branch information
RemiBonnet authored Jan 15, 2025
1 parent fa2d3a4 commit 08fe3a7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,11 @@ export function ServiceList({ environment, className, ...props }: ServiceListPro
variant="outline"
radius="full"
>
<StatusChip status={service.runningStatus?.state} />
<StatusChip
status={match(service)
.with({ serviceType: 'DATABASE', mode: 'MANAGED' }, (s) => s.deploymentStatus?.state)
.otherwise((s) => s.runningStatus?.state)}
/>
{value}
</Link>
</Tooltip>
Expand Down

0 comments on commit 08fe3a7

Please sign in to comment.