Skip to content

Commit

Permalink
change headerClass to an object instead of a string
Browse files Browse the repository at this point in the history
Co-authored-by: Laila Los <[email protected]>
  • Loading branch information
ahmedhamidawan and ElectronicBlueberry committed Apr 29, 2024
1 parent 5d623af commit 0ce7488
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/src/composables/useInvocationGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface GraphStep extends Step {
| "paused"
| "skipped";
jobs: StepJobSummary["states"];
headerClass?: string;
headerClass?: Record<string, boolean>;
headerIcon?: IconDefinition;
headerIconSpin?: boolean;
}
Expand Down Expand Up @@ -194,10 +194,11 @@ export function useInvocationGraph(
}

/** Setting the header class for the graph step */
if (graphStepFromWfStep.state) {
graphStepFromWfStep.headerClass = `node-header-invocation header-${graphStepFromWfStep.state}`;
// TODO: maybe a different one for inputs? Currently they have no state either.
}
graphStepFromWfStep.headerClass = {
"node-header-invocation": true,
[`header-${graphStepFromWfStep.state}`]: !!graphStepFromWfStep.state,
};
// TODO: maybe a different one for inputs? Currently they have no state either.

/** Setting the header icon for the graph step */
if (graphStepFromWfStep.state) {
Expand Down

0 comments on commit 0ce7488

Please sign in to comment.