Skip to content

Commit

Permalink
✨: Add optional title and disabled props to WorkflowRunButton
Browse files Browse the repository at this point in the history
  • Loading branch information
itisAliRH committed Feb 23, 2024
1 parent 4e3ed4c commit aecf010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/Workflow/WorkflowRunButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ library.add(faPlay);
interface Props {
id: string;
full?: boolean;
title?: string;
disabled?: boolean;
}
const props = defineProps<Props>();
Expand All @@ -25,10 +27,11 @@ function ExecuteWorkflow() {
<BButton
id="workflow-run-button"
v-b-tooltip.hover.top
title="Run workflow"
:title="title ?? 'Run workflow'"
:data-workflow-run="id"
variant="primary"
size="sm"
:disabled="disabled"
@click.stop="ExecuteWorkflow">
<FontAwesomeIcon :icon="faPlay" />
<span v-if="full" v-localize>Run</span>
Expand Down

0 comments on commit aecf010

Please sign in to comment.