mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-13 16:57:59 +08:00
✨: Add optional title and disabled props to WorkflowRunButton
This commit is contained in:
@@ -10,6 +10,8 @@ library.add(faPlay);
|
||||
interface Props {
|
||||
id: string;
|
||||
full?: boolean;
|
||||
title?: string;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
@@ -25,10 +27,11 @@ function ExecuteWorkflow() {
|
||||
<BButton
|
||||
id="workflow-run-button"
|
||||
v-b-tooltip.hover.top.noninteractive
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user