Skip to content

Commit 50e0760

Browse files
committed
feat: runs slot
1 parent ce18b13 commit 50e0760

File tree

1 file changed

+25
-25
lines changed
  • packages/ecc-client-ga4gh-wes/src/components/runs

1 file changed

+25
-25
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -484,31 +484,31 @@ export class ECCClientGa4ghWesRuns extends LitElement {
484484
})()}
485485
</ecc-utils-design-table-cell>
486486
<ecc-utils-design-table-cell class="w-3/12">
487-
<div class="flex gap-2">
488-
<ecc-utils-design-button
489-
size="sm"
490-
variant="outline"
491-
@click=${() => this.handleViewDetails(run.run_id)}
492-
>
493-
View Details
494-
</ecc-utils-design-button>
495-
${run.state === "RUNNING" ||
496-
run.state === "QUEUED" ||
497-
run.state === "INITIALIZING"
498-
? html`
499-
<ecc-utils-design-button
500-
size="sm"
501-
variant="destructive"
502-
@click=${() => this.handleCancelRun(run.run_id)}
503-
>
504-
Cancel
505-
</ecc-utils-design-button>
506-
`
507-
: ""}
508-
</div>
509-
</ecc-utils-design-table-cell>
510-
<ecc-utils-design-table-cell class="w-1/12">
511-
<slot name=${`actions-${run.run_id}`}> </slot>
487+
<slot name=${`actions-${run.run_id}`}>
488+
<div class="flex gap-2">
489+
<ecc-utils-design-button
490+
size="sm"
491+
variant="outline"
492+
@click=${() => this.handleViewDetails(run.run_id)}
493+
>
494+
View Details
495+
</ecc-utils-design-button>
496+
${run.state === "RUNNING" ||
497+
run.state === "QUEUED" ||
498+
run.state === "INITIALIZING"
499+
? html`
500+
<ecc-utils-design-button
501+
size="sm"
502+
variant="destructive"
503+
@click=${() =>
504+
this.handleCancelRun(run.run_id)}
505+
>
506+
Cancel
507+
</ecc-utils-design-button>
508+
`
509+
: ""}
510+
</div>
511+
</slot>
512512
</ecc-utils-design-table-cell>
513513
</ecc-utils-design-table-row>
514514
`

0 commit comments

Comments
 (0)