Skip to content

Commit

Permalink
Jamie hide unnecessary run buttons in workflow (#1580)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Szendrey <[email protected]>
  • Loading branch information
jamiewaese-uncharted and Tom-Szendrey authored Aug 1, 2023
1 parent 1e4b95c commit f82b328
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div v-if="!disableRunButton">
<Button
size="small"
label="Run"
Expand Down Expand Up @@ -30,7 +30,7 @@
<section v-else class="result-container">
<div class="invalid-block" v-if="node.statusCode === WorkflowStatus.INVALID">
<img class="image" src="@assets/svg/plants.svg" alt="" />
<p>Configure in side panel</p>
<p class="helpMessage">Configure in side panel</p>
</div>
</section>
</section>
Expand Down Expand Up @@ -231,7 +231,10 @@ section {
padding: 10px;
background: var(--surface-overlay);
}
.helpMessage {
color: var(--text-color-subdued);
font-size: var(--font-caption);
}
.result-container {
align-items: center;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
</p>
</section>
<Button
v-if="modelConfigId && datasetId"
class="p-button-sm run-button"
label="Run"
icon="pi pi-play"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
</p>
</section>
<Button
v-if="modelConfigId && datasetId"
class="p-button-sm run-button"
label="Run"
icon="pi pi-play"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div v-if="!disableRunButton">
<Button
size="small"
label="Run"
Expand Down Expand Up @@ -30,7 +30,7 @@
<section v-else class="result-container">
<div class="invalid-block" v-if="node.statusCode === WorkflowStatus.INVALID">
<img class="image" src="@assets/svg/plants.svg" alt="" />
<p>Configure in side panel</p>
<p class="helpMessage">Configure in side panel</p>
</div>
</section>
</section>
Expand Down Expand Up @@ -201,6 +201,10 @@ section {
background: var(--surface-overlay);
}
.helpMessage {
color: var(--text-color-subdued);
font-size: var(--font-caption);
}
.result-container {
align-items: center;
}
Expand Down

0 comments on commit f82b328

Please sign in to comment.