File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/lib/components/workflow Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 179179 updateWorkflowCallback (result);
180180 }
181181
182+ function getSelectedUpdateCandidate () {
183+ const selectedCandidate = updateCandidates .filter ((t ) => t .version === selectedUpdateVersion);
184+ if (selectedCandidate .length === 1 ) {
185+ return selectedCandidate[0 ];
186+ }
187+ return null ;
188+ }
189+
182190 $: canBeUpdated =
183191 selectedUpdateVersion && (validationErrors === null || validationErrors .length === 0 );
184192 </script >
237245 </ul >
238246 </div >
239247 {/if }
248+ {#if selectedUpdateVersion }
249+ <div class =" alert alert-warning mt-3" >
250+ You are updating version from {task .version } to {selectedUpdateVersion }<br />
251+ {#if getSelectedUpdateCandidate ()?.docs_link }
252+ Information on different version may be found on
253+ <a href ={getSelectedUpdateCandidate ()?.docs_link } target =" _blank" >
254+ task documentation
255+ </a >
256+ {/if }
257+ </div >
258+ {/if }
240259 {#if argsToBeFixed }
241260 {#if ! validationErrors }
242261 <div class =" alert alert-success mt-3" >The arguments are valid</div >
You can’t perform that action at this time.
0 commit comments