Skip to content

Commit 554c768

Browse files
committed
feat: color
1 parent 9d4cf72 commit 554c768

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

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

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export class ECCClientGa4ghWesRun extends LitElement {
143143
} catch (err) {
144144
this.error =
145145
err instanceof Error ? err.message : "Failed to load run details";
146+
// eslint-disable-next-line no-console
146147
console.error({
147148
error: this.error,
148149
breakPoint: "ECCClientGa4ghWesRun.loadRunData",
@@ -231,7 +232,6 @@ export class ECCClientGa4ghWesRun extends LitElement {
231232

232233
private renderRunHeader() {
233234
if (!this.run) return html``;
234-
const stateInfo = ECCClientGa4ghWesRun.getStateInfo(this.run.state);
235235

236236
return html`
237237
<div class="mb-6">
@@ -243,16 +243,16 @@ export class ECCClientGa4ghWesRun extends LitElement {
243243
</div>
244244
245245
<div class="flex flex-wrap gap-2 items-center">
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-
})()}
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+
})()}
256256
<ecc-utils-design-badge variant="outline">
257257
${this.run.request.workflow_type}
258258
</ecc-utils-design-badge>
@@ -500,7 +500,6 @@ export class ECCClientGa4ghWesRun extends LitElement {
500500
key: string,
501501
label: string
502502
): string {
503-
console.log("resolveLogContent", raw, key, label);
504503
if (!raw) return `No ${label}.`;
505504
const cached = this.logContents[key];
506505
if (cached !== undefined) return cached;

0 commit comments

Comments
 (0)