Skip to content

Commit 9d4cf72

Browse files
keshxvdayalanuragxxd
authored andcommitted
UP-676: Run label consistency DONE
1 parent 5f41e87 commit 9d4cf72

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

  • packages/ecc-client-ga4gh-wes/src/components/run

packages/ecc-client-ga4gh-wes/src/components/run/run.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,16 @@ export class ECCClientGa4ghWesRun extends LitElement {
243243
</div>
244244
245245
<div class="flex flex-wrap gap-2 items-center">
246-
<ecc-utils-design-badge variant=${stateInfo.variant}>
247-
${stateInfo.label}
248-
</ecc-utils-design-badge>
246+
${(() => {
247+
const stateInfo = ECCClientGa4ghWesRun.getStateInfo(
248+
this.run.state
249+
);
250+
return html`
251+
<ecc-utils-design-badge variant=${stateInfo.variant}>
252+
${stateInfo.label}
253+
</ecc-utils-design-badge>
254+
`;
255+
})()}
249256
<ecc-utils-design-badge variant="outline">
250257
${this.run.request.workflow_type}
251258
</ecc-utils-design-badge>

0 commit comments

Comments
 (0)