forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWorkflowRunFormSimple.vue
More file actions
703 lines (631 loc) · 28.2 KB
/
WorkflowRunFormSimple.vue
File metadata and controls
703 lines (631 loc) · 28.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
<script setup lang="ts">
import { faReadme } from "@fortawesome/free-brands-svg-icons";
import { faArrowRight, faCog, faSitemap } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { BAlert, BFormInput, BModal, BOverlay } from "bootstrap-vue";
import { storeToRefs } from "pinia";
import { computed, onBeforeMount, ref, watch } from "vue";
import type { WriteStoreToPayload } from "@/api/exports";
import type { WorkflowInvocationRequestInputs } from "@/api/invocations";
import type { ToolIdentifier } from "@/api/tools";
import type { DataOption } from "@/components/Form/Elements/FormData/types";
import type { FormParameterTypes } from "@/components/Form/parameterTypes";
import { isWorkflowInput } from "@/components/Workflow/constants";
import { useConfig } from "@/composables/config";
import { useFileSources } from "@/composables/fileSources";
import { usePersistentToggle } from "@/composables/persistentToggle";
import { usePanels } from "@/composables/usePanels";
import { useUserMultiToolCredentials } from "@/composables/userMultiToolCredentials";
import { useWorkflowInstance } from "@/composables/useWorkflowInstance";
import { provideScopedWorkflowStores } from "@/composables/workflowStores";
import { useHistoryStore } from "@/stores/historyStore";
import { useToolsServiceCredentialsDefinitionsStore } from "@/stores/toolsServiceCredentialsDefinitionsStore";
import { useUserStore } from "@/stores/userStore";
import { errorMessageAsString } from "@/utils/simple-error";
import { invokeWorkflow } from "./services";
import WorkflowAnnotation from "../WorkflowAnnotation.vue";
import WorkflowNavigationTitle from "../WorkflowNavigationTitle.vue";
import ExportOnCompleteWizard from "./ExportOnCompleteWizard.vue";
import WorkflowHelpDisplay from "./WorkflowHelpDisplay.vue";
import WorkflowRunGraph from "./WorkflowRunGraph.vue";
import WorkflowStorageConfiguration from "./WorkflowStorageConfiguration.vue";
import GButton from "@/components/BaseComponents/GButton.vue";
import GButtonGroup from "@/components/BaseComponents/GButtonGroup.vue";
import GCheckbox from "@/components/BaseComponents/GCheckbox.vue";
import Heading from "@/components/Common/Heading.vue";
import FormDisplay from "@/components/Form/FormDisplay.vue";
import HelpText from "@/components/Help/HelpText.vue";
import LoadingSpan from "@/components/LoadingSpan.vue";
import WorkflowCredentials from "@/components/Workflow/Run/WorkflowCredentials.vue";
interface Props {
model: Record<string, any>;
targetHistory?: string;
useJobCache?: boolean;
canMutateCurrentHistory: boolean;
requestState?: WorkflowInvocationRequestInputs;
isRerun?: boolean;
landingUuid?: string;
}
const props = withDefaults(defineProps<Props>(), {
targetHistory: "current",
useJobCache: false,
requestState: undefined,
isRerun: false,
landingUuid: undefined,
});
const emit = defineEmits<{
(e: "showAdvanced"): void;
(e: "submissionSuccess", invocations: any): void;
(e: "submissionError", error: string): void;
}>();
const { currentUser } = storeToRefs(useUserStore());
const { currentHistoryId, changingCurrentHistory } = storeToRefs(useHistoryStore());
const { stateStore } = provideScopedWorkflowStores(props.model.workflowId);
const { activeNodeId } = storeToRefs(stateStore);
const { config, isConfigLoaded } = useConfig(true);
const { showPanels } = usePanels();
const formData = ref<Record<string, any>>({});
const inputTypes = ref<Record<string, string>>({});
const stepValidation = ref<[string, string] | null>(null);
const sendToNewHistory = ref(props.targetHistory === "new" || props.targetHistory === "prefer_new");
const newHistoryName = ref(props.model.name);
const useCachedJobs = ref(props.useJobCache);
const splitObjectStore = ref(false);
const preferredObjectStoreId = ref<string | null>(null);
const preferredIntermediateObjectStoreId = ref<string | null>(null);
const waitingForRequest = ref(false);
const showRightPanel = ref<"help" | "graph" | null>(null);
const checkInputMatching = ref(props.requestState !== undefined);
const sendNotificationOnComplete = ref(false);
const showExportWizard = ref(false);
const exportCheckboxKey = ref(0);
const exportOnCompleteConfig = ref<WriteStoreToPayload | null>(null);
const { hasWritable: hasWritableFileSources } = useFileSources({ exclude: ["rdm"] });
const showGraph = computed(() => showRightPanel.value === "graph");
const showHelp = computed(() => showRightPanel.value === "help");
const { toggled: showRuntimeSettingsPanel, toggle: toggleRuntimeSettings } =
usePersistentToggle("workflow-run-settings-panel");
// Workflow REAME/help panel setup
const { workflow, loading: workflowLoading } = useWorkflowInstance(props.model.runData.workflow_id);
watch(
() => workflow.value,
(workflow) => {
if (workflow) {
// once the workflow loads, and if we are not showing panels, show the help if it exists by default
showRightPanel.value = !showPanels.value && workflow.readme ? "help" : null;
}
},
{ immediate: true },
);
watch(
() => showGraph.value,
(show) => {
if (!show) {
activeNodeId.value = null;
}
},
);
const computedActiveNodeId = computed<number | undefined>(() => {
if (showGraph.value) {
if (activeNodeId.value !== null && activeNodeId.value !== undefined) {
return activeNodeId.value;
}
}
return undefined;
});
const formInputs = computed(() => {
const inputs = [] as any[];
// Add workflow parameters.
Object.values(props.model.wpInputs).forEach((input) => {
const inputCopy = Object.assign({}, input) as any;
// do we want to keep the color if we're not showing steps?
inputCopy.color = undefined;
inputs.push(inputCopy);
inputTypes.value[inputCopy.name] = "replacement_parameter";
});
// Add actual input modules.
props.model.steps.forEach((step: any, i: number) => {
if (isWorkflowInput(step.step_type)) {
const stepName = new String(step.step_index) as any;
const stepLabel = step.step_label || new String(step.step_index + 1);
// For the `WorkflowInvocationRequestModel`, (used in `WorkflowRerun`) if there is no step_label, it does not have
// `step.step_index + 1` as a label, and has `step.step_index` instead.
const rerunStateIndex = !step.step_label ? new String(step.step_index) : stepLabel;
const stepType = step.step_type;
const help = step.annotation;
const longFormInput = step.inputs[0];
const stepAsInput = Object.assign({}, longFormInput, {
name: stepName,
help: help,
label: stepLabel,
});
if (props.requestState) {
if (props.isRerun) {
const requestStateKeys = Object.keys(props.requestState);
const stateKey = String(rerunStateIndex);
let value;
if (stateKey in props.requestState) {
// request state has the step_label as key
value = props.requestState[stateKey];
} else if (requestStateKeys[i] === "") {
// request state has "" as key on the `i` position
value = Object.values(props.requestState)[i];
}
if (value !== undefined) {
if (stepType === "data_input" || stepType === "data_collection_input") {
// Note: This is different from workflow landings because `WorkflowInvocationRequestModel`
// does not provide an object with `values` property.
stepAsInput.value = {
values: !Array.isArray(value) ? [value] : value,
};
} else {
stepAsInput.value = value;
}
}
} else if (String(stepLabel) in props.requestState) {
stepAsInput.value = props.requestState[String(stepLabel)];
}
}
// disable collection mapping...
stepAsInput.flavor = "module";
inputs.push(stepAsInput);
inputTypes.value[stepName] = stepType;
}
});
return inputs;
});
/**
* Returns the list of steps that do not match the workflow rerun `props.requestState`.
*
* TODO: Until form elements are typed better, this is a little shady.
* We do not compare values for the types in the last `else if` statement.
* And for the `select` type, we assume that the values are arrays of strings or numbers.
* @returns {string[]} The list of steps indices that do not match the request state.
*/
const stepsNotMatchingRequest = computed<string[]>(() => {
if (!props.isRerun || !checkInputMatching.value || !props.requestState) {
return [];
}
const inputs = formInputs.value;
const data = formData.value;
const notMatching: string[] = [];
for (const input of inputs) {
if (input.name in data) {
const type = input.type as FormParameterTypes;
if ((type === "data" || type === "data_collection") && input.value?.values && data[input.name]?.values) {
const expectedValues = input.value.values as DataOption[];
const actualValues = data[input.name].values as DataOption[];
const matches =
Array.isArray(expectedValues) &&
Array.isArray(actualValues) &&
expectedValues?.length === actualValues?.length &&
expectedValues.every((value, index) => {
return value.src === actualValues[index]?.src && value.id === actualValues[index].id;
});
if (!matches) {
notMatching.push(input.name as string);
}
} else if (type === "select") {
const expectedValues = (Array.isArray(input.value) ? input.value : [input.value]) as (
| string
| number
)[];
const actualValues = (Array.isArray(data[input.name]) ? data[input.name] : [data[input.name]]) as (
| string
| number
)[];
const matches =
expectedValues.length === actualValues.length &&
expectedValues.every((value, index) => {
return value === actualValues[index];
});
if (!matches) {
notMatching.push(input.name as string);
}
} else if (
!["drill_down", "group_tag", "ftpfile", "upload", "rules", "tags"].includes(type) &&
input.value !== data[input.name]
) {
notMatching.push(input.name as string);
}
}
}
return notMatching;
});
const isValidRerun = computed(
() => Boolean(props.isRerun) && checkInputMatching.value && stepsNotMatchingRequest.value.length === 0,
);
const hasValidationErrors = computed(() => stepValidation.value !== null);
const canRunOnHistory = computed(() => props.canMutateCurrentHistory || sendToNewHistory.value);
function onValidation(validation: [string, string] | null) {
if (validation && validation.length == 2) {
stepValidation.value = [validation[0], validation[1]];
} else {
stepValidation.value = null;
}
}
function onChange(data: any) {
formData.value = data;
}
function onStorageUpdate(objectStoreId: string, intermediate: boolean) {
if (intermediate) {
preferredIntermediateObjectStoreId.value = objectStoreId;
} else {
preferredObjectStoreId.value = objectStoreId;
}
}
function updateActiveNodeId(nodeId: number | null) {
activeNodeId.value = nodeId;
}
function onExportConfigured(config: typeof exportOnCompleteConfig.value) {
exportOnCompleteConfig.value = config;
showExportWizard.value = false;
}
function clearExportConfig() {
exportOnCompleteConfig.value = null;
}
function onExportWizardCancel() {
showExportWizard.value = false;
// Force checkbox to re-render and reset to unchecked state if no config was set
if (exportOnCompleteConfig.value === null) {
exportCheckboxKey.value++;
}
}
const exportEnabled = computed({
get: () => exportOnCompleteConfig.value !== null,
set: (value: boolean) => {
if (value) {
// User wants to enable - open wizard, don't actually enable yet
showExportWizard.value = true;
} else {
// User wants to disable - clear the config
clearExportConfig();
}
},
});
async function onExecute() {
waitingForRequest.value = true;
const replacementParams: Record<string, any> = {};
const inputs: Record<string, any> = {};
for (const inputName in formData.value) {
const value = formData.value[inputName];
const inputType = inputTypes.value[inputName];
if (inputType == "replacement_parameter") {
replacementParams[inputName] = value;
} else if (inputType && isWorkflowInput(inputType)) {
inputs[inputName] = value;
}
}
const onCompleteActions: any[] = [];
if (sendNotificationOnComplete.value) {
onCompleteActions.push({ send_notification: {} });
}
if (exportOnCompleteConfig.value) {
onCompleteActions.push({ export_to_file_source: exportOnCompleteConfig.value });
}
const data: Record<string, any> = {
replacement_dict: replacementParams,
inputs: inputs,
inputs_by: "step_index",
batch: true,
use_cached_job: useCachedJobs.value,
require_exact_tool_versions: false,
version: props.model.runData.version,
on_complete: onCompleteActions.length > 0 ? onCompleteActions : null,
};
if (props.landingUuid) {
data.landing_uuid = props.landingUuid;
}
if (sendToNewHistory.value) {
data.new_history_name = newHistoryName.value;
} else {
data.history_id = props.model.historyId;
}
if (splitObjectStore.value) {
if (preferredObjectStoreId.value != null) {
data.preferred_outputs_object_store_id = preferredObjectStoreId.value;
}
if (preferredIntermediateObjectStoreId.value != null && splitObjectStore.value) {
data.preferred_intermediate_object_store_id = preferredIntermediateObjectStoreId.value;
}
} else {
if (preferredObjectStoreId.value != null) {
data.preferred_object_store_id = preferredObjectStoreId.value;
}
}
try {
const invocations = await invokeWorkflow(props.model.workflowId, data);
emit("submissionSuccess", invocations);
} catch (error) {
emit("submissionError", errorMessageAsString(error));
} finally {
waitingForRequest.value = false;
}
}
const { setToolServiceCredentialsDefinitionFor } = useToolsServiceCredentialsDefinitionsStore();
const credentialTools = computed<ToolIdentifier[]>(() => {
const credentialSteps = props.model.steps.filter(
(step: any) => step.step_type === "tool" && step.credentials?.length,
);
const toolIdentifiers: ToolIdentifier[] = [];
credentialSteps.forEach((step: any) => {
setToolServiceCredentialsDefinitionFor(step.id, step.version, step.credentials);
toolIdentifiers.push({
toolId: step.id,
toolVersion: step.version,
});
});
return toolIdentifiers;
});
const hasCredentialErrors = computed(() => {
if (credentialTools.value.length) {
const { hasUserProvidedAllRequiredToolsServiceCredentials } = useUserMultiToolCredentials(
credentialTools.value,
);
return !hasUserProvidedAllRequiredToolsServiceCredentials.value;
}
return false;
});
onBeforeMount(() => {
const credentialSteps = props.model.steps.filter(
(step: any) => step.step_type === "tool" && step.credentials?.length,
);
if (credentialSteps.length) {
const promises = credentialSteps.map((step: any) =>
setToolServiceCredentialsDefinitionFor(step.id, step.version, step.credentials),
);
return Promise.all(promises);
}
});
</script>
<template>
<div
v-if="currentUser && currentHistoryId"
class="d-flex flex-column h-100 workflow-run-form-simple"
data-galaxy-file-drop-target>
<div v-if="!showRightPanel" class="ui-form-header-underlay sticky-top" />
<div v-if="isConfigLoaded" :class="{ 'sticky-top': !showRightPanel }">
<BAlert v-if="!canRunOnHistory" variant="warning" show>
<span v-localize>
The workflow cannot run because the current history is immutable. Please select a different history
or send the results to a new one using the run settings ⚙️
</span>
</BAlert>
<div class="mb-2">
<WorkflowNavigationTitle
:workflow-id="model.runData.workflow_id"
:run-disabled="hasValidationErrors || !canRunOnHistory || hasCredentialErrors"
:run-waiting="waitingForRequest"
:valid-rerun="isValidRerun"
@on-execute="onExecute">
<template v-slot:workflow-title-actions>
<GButtonGroup>
<GButton
tooltip
size="small"
:title="!showGraph ? 'Show workflow graph' : 'Hide workflow graph'"
transparent
color="blue"
:pressed="showGraph"
@click="showRightPanel = showGraph ? null : 'graph'">
<FontAwesomeIcon :icon="faSitemap" fixed-width />
</GButton>
<GButton
v-if="workflow?.readme || workflow?.help"
tooltip
size="small"
:title="!showHelp ? 'Show workflow help' : 'Hide workflow help'"
transparent
color="blue"
:pressed="showHelp"
@click="showRightPanel = showHelp ? null : 'help'">
<FontAwesomeIcon :icon="faReadme" fixed-width />
</GButton>
</GButtonGroup>
<GButton
tooltip
size="small"
title="Workflow Run Settings"
transparent
color="blue"
class="workflow-run-settings"
data-test-id="workflow-run-settings-button"
:pressed="showRuntimeSettingsPanel"
@click="toggleRuntimeSettings">
<FontAwesomeIcon :icon="faCog" fixed-width />
</GButton>
</template>
</WorkflowNavigationTitle>
<!-- Runtime Settings Panel -->
<div v-if="showRuntimeSettingsPanel" class="workflow-runtime-settings-panel p-3 rounded-bottom">
<!-- Send to new history -->
<div class="settings-row">
<GCheckbox id="send-to-new-history" v-model="sendToNewHistory" toggle>
Send results to a new history
<HelpText uri="galaxy.workflows.runtimeSettings.sendToNewHistory" info-icon />
</GCheckbox>
<div v-if="sendToNewHistory" class="settings-detail">
<BFormInput
v-model="newHistoryName"
size="sm"
placeholder="New history name"
class="history-name-input" />
</div>
</div>
<!-- Use cached jobs -->
<div class="settings-row">
<GCheckbox v-model="useCachedJobs" toggle>
Re-use jobs with identical parameters
<HelpText uri="galaxy.workflows.runtimeSettings.useCachedJobs" info-icon />
</GCheckbox>
</div>
<!-- Send notification -->
<div v-if="isConfigLoaded && config.enable_notification_system" class="settings-row">
<GCheckbox
v-model="sendNotificationOnComplete"
toggle
data-test-id="send-notification-checkbox">
Notify me when complete
<HelpText uri="galaxy.workflows.runtimeSettings.sendNotification" info-icon />
</GCheckbox>
</div>
<!-- Export on completion -->
<div v-if="hasWritableFileSources" class="settings-row">
<GCheckbox :key="exportCheckboxKey" v-model="exportEnabled" toggle>
Export results when complete
<HelpText uri="galaxy.workflows.runtimeSettings.exportOnComplete" info-icon />
</GCheckbox>
<div v-if="exportOnCompleteConfig" class="settings-detail">
<span class="export-summary">
<span class="text-muted">
{{ exportOnCompleteConfig.target_uri.split("/").pop() }}
</span>
<GButton
tooltip
transparent
color="blue"
size="small"
title="Edit export configuration"
@click="showExportWizard = true">
<span class="fa fa-edit" />
</GButton>
</span>
</div>
</div>
<!-- Storage options -->
<template v-if="isConfigLoaded && config.object_store_allows_id_selection">
<div class="settings-row">
<GCheckbox v-model="splitObjectStore" toggle>
Send outputs and intermediate to different storage
<HelpText uri="galaxy.workflows.runtimeSettings.splitObjectStore" info-icon />
</GCheckbox>
</div>
<div class="settings-row">
<WorkflowStorageConfiguration
:split-object-store="splitObjectStore"
:invocation-preferred-object-store-id="preferredObjectStoreId ?? undefined"
:invocation-intermediate-preferred-object-store-id="preferredIntermediateObjectStoreId"
@updated="onStorageUpdate" />
</div>
</template>
<!-- Expanded form link -->
<div class="settings-row mt-2 pt-2 border-top">
<GButton
tooltip
transparent
color="blue"
size="small"
class="workflow-expand-form-link"
title="Switch to the legacy workflow form"
@click="$emit('showAdvanced')">
Expanded workflow form <FontAwesomeIcon :icon="faArrowRight" />
</GButton>
</div>
</div>
</div>
</div>
<WorkflowAnnotation
:workflow-id="model.runData.workflow_id"
:history-id="model.historyId"
show-details
:hide-hr="Boolean(showRightPanel)" />
<WorkflowCredentials v-if="credentialTools?.length" :tool-identifiers="credentialTools" />
<div class="overflow-auto h-100">
<div class="d-flex h-100">
<div
:class="showRightPanel ? 'w-50 flex-grow-1' : 'w-100'"
:style="{ 'overflow-y': 'auto', 'overflow-x': 'hidden' }">
<div v-if="showRightPanel" class="ui-form-header-underlay sticky-top" />
<Heading v-if="showRightPanel" class="sticky-top" h2 separator bold size="sm"> Parameters </Heading>
<BOverlay :show="changingCurrentHistory" no-fade rounded="sm" opacity="0.5">
<template v-slot:overlay>
<LoadingSpan message="Changing your current history" />
</template>
<FormDisplay
:inputs="formInputs"
:allow-empty-value-on-required-input="true"
:sync-with-graph="showGraph"
:active-node-id="computedActiveNodeId"
workflow-run
:steps-not-matching-request="stepsNotMatchingRequest"
@onChange="onChange"
@onValidation="onValidation"
@stop-flagging="checkInputMatching = false"
@update:active-node-id="updateActiveNodeId" />
</BOverlay>
</div>
<div v-if="showRightPanel" class="h-100 w-50 d-flex flex-shrink-0">
<WorkflowRunGraph
v-if="isConfigLoaded && showGraph"
:workflow-id="model.workflowId"
:step-validation="stepValidation || undefined"
:stored-id="model.runData.workflow_id"
:version="model.runData.version"
:inputs="formData"
:form-inputs="formInputs" />
<div v-else-if="showHelp" class="d-flex flex-column">
<Heading class="sticky-top" h2 separator bold size="sm"> Help </Heading>
<WorkflowHelpDisplay :workflow="workflow" :loading="workflowLoading" />
</div>
</div>
</div>
</div>
<BModal
v-model="showExportWizard"
title="Configure Export on Completion"
size="lg"
hide-footer
@hidden="onExportWizardCancel">
<ExportOnCompleteWizard
:initial-config="exportOnCompleteConfig || undefined"
@configured="onExportConfigured"
@cancel="onExportWizardCancel" />
</BModal>
</div>
</template>
<style scoped lang="scss">
@import "@/style/scss/theme/blue.scss";
.workflow-runtime-settings-panel {
background-color: $brand-light;
border-left: 1px solid $gray-200;
border-right: 1px solid $gray-200;
border-bottom: 1px solid $gray-200;
animation: slideDown 0.2s ease-in-out;
}
.settings-row {
padding: 0.4rem 0;
position: relative;
&:first-child {
padding-top: 0;
}
// Ensure popovers from this row appear above subsequent rows
&:hover {
z-index: 10;
}
}
.settings-detail {
margin-left: 2.5rem;
margin-top: 0.25rem;
}
.history-name-input {
max-width: 300px;
}
.export-summary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9em;
}
@keyframes slideDown {
from {
opacity: 0;
transform: scaleY(0);
max-height: 0;
}
to {
opacity: 1;
transform: scaleY(1);
max-height: 400px;
}
}
</style>