mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix lost reports when switching workflow versions
We serialize workflow.reports, but we were only setting it on the workflow instance if the markdown editor emits it. Fixes a part of https://github.com/galaxyproject/galaxy/issues/17903
This commit is contained in:
@@ -145,7 +145,7 @@
|
||||
<MarkdownEditor
|
||||
v-else
|
||||
:markdown-text="markdownText"
|
||||
:markdown-config="markdownConfig"
|
||||
:markdown-config="report"
|
||||
mode="report"
|
||||
:title="'Workflow Report: ' + name"
|
||||
:steps="steps"
|
||||
@@ -310,7 +310,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
isCanvas: true,
|
||||
markdownConfig: null,
|
||||
markdownText: null,
|
||||
versions: [],
|
||||
parameters: null,
|
||||
@@ -762,8 +761,8 @@ export default {
|
||||
|
||||
const report = data.report || {};
|
||||
const markdown = report.markdown || reportDefault;
|
||||
this.report = report;
|
||||
this.markdownText = markdown;
|
||||
this.markdownConfig = report;
|
||||
this.hideModal();
|
||||
this.stateMessages = getStateUpgradeMessages(data);
|
||||
const has_changes = this.stateMessages.length > 0;
|
||||
|
||||
Reference in New Issue
Block a user