Skip to content

Commit

Permalink
wc - Fix info message when no workflows in a study. #TASK-7357 #TASK-…
Browse files Browse the repository at this point in the history
…7100

Signed-off-by: gpveronica <[email protected]>
  • Loading branch information
gpveronica committed Jan 27, 2025
1 parent c20e46e commit 6c63fbf
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/webcomponents/workflow/workflow-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,6 @@ export default class WorkflowManager extends LitElement {
}

render() {
if (this.workflows?.length === 0) {
return html`
<div class="alert alert-info"><i class="fas fa-3x fa-info-circle align-middle"></i>
No workflows available.
</div>
`;
}

return html`
<div class="interpreter-content-tab">
<div class="row">
Expand All @@ -296,14 +288,19 @@ export default class WorkflowManager extends LitElement {
</button>
</div>
</div>
<div>
<data-list
.data="${this.workflows}"
.config="${this._config}">
</data-list>
${this.workflows?.length === 0 ? html`
<div class="alert alert-info">
<i class="fas fa-3x fa-info-circle align-middle me-2"></i>
No workflows available.
</div>
` : html`
<div>
<data-list
.data="${this.workflows}"
.config="${this._config}">
</data-list>
</div>
`}
</div>
</div>
Expand Down

0 comments on commit 6c63fbf

Please sign in to comment.