27
27
<h1 class =" text-break align-middle" >
28
28
Title: {{ markdownConfig.title || markdownConfig.model_class }}
29
29
</h1 >
30
+ <h2 v-if =" workflowVersions" class =" text-break align-middle" >
31
+ Workflow Checkpoint: {{ workflowVersions.version }}
32
+ </h2 >
30
33
</span >
31
34
</div >
32
35
<b-badge variant =" info" class =" w-100 rounded mb-3 white-space-normal" >
@@ -67,9 +70,12 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
67
70
import BootstrapVue from " bootstrap-vue" ;
68
71
import MarkdownIt from " markdown-it" ;
69
72
import markdownItRegexp from " markdown-it-regexp" ;
73
+ import { mapActions } from " pinia" ;
70
74
import store from " store" ;
71
75
import Vue from " vue" ;
72
76
77
+ import { useWorkflowStore } from " @/stores/workflowStore" ;
78
+
73
79
import MarkdownContainer from " ./MarkdownContainer.vue" ;
74
80
import LoadingSpan from " components/LoadingSpan.vue" ;
75
81
import StsDownloadButton from " components/StsDownloadButton.vue" ;
@@ -131,6 +137,7 @@ export default {
131
137
jobs: {},
132
138
invocations: {},
133
139
loading: true ,
140
+ workflowID: " " ,
134
141
};
135
142
},
136
143
computed: {
@@ -158,6 +165,9 @@ export default {
158
165
}
159
166
return " unavailable" ;
160
167
},
168
+ workflowVersions () {
169
+ return this .getStoredWorkflowByInstanceId (this .workflowID );
170
+ },
161
171
version () {
162
172
return this .markdownConfig .generate_version || " Unknown Galaxy Version" ;
163
173
},
@@ -169,8 +179,10 @@ export default {
169
179
},
170
180
created () {
171
181
this .initConfig ();
182
+ this .fetchWorkflowForInstanceId (this .workflowID );
172
183
},
173
184
methods: {
185
+ ... mapActions (useWorkflowStore, [" getStoredWorkflowByInstanceId" , " fetchWorkflowForInstanceId" ]),
174
186
initConfig () {
175
187
if (Object .keys (this .markdownConfig ).length ) {
176
188
const config = this .markdownConfig ;
@@ -184,6 +196,7 @@ export default {
184
196
this .jobs = config .jobs || {};
185
197
this .invocations = config .invocations || {};
186
198
this .loading = false ;
199
+ this .workflowID = Object .keys (this .markdownConfig .workflows )[0 ];
187
200
}
188
201
},
189
202
splitMarkdown (markdown ) {
0 commit comments