Skip to content

Commit

Permalink
prioritize link to subworkflow in invocation view
Browse files Browse the repository at this point in the history
... and disable Report tab in subworkflow step
  • Loading branch information
ahmedhamidawan committed Aug 23, 2024
1 parent a3156c0 commit 1196d2a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ function onCancel() {

<template>
<div class="mb-3 workflow-invocation-state-component">
<BAlert v-if="invocation && isSubworkflow" variant="secondary" show>
This subworkflow is
<HelpText :uri="`galaxy.invocations.states.${invocation.state}`" :text="invocation.state" />.
<ExternalLink :href="withPrefix(`/workflows/invocations/${invocation.id}`)"> Click here </ExternalLink>
to view this subworkflow in graph view.
</BAlert>
<div v-if="!invocationAndJobTerminal">
<BAlert variant="info" show>
<LoadingSpan :message="`Waiting to complete invocation ${indexStr}`" />
Expand Down Expand Up @@ -225,23 +231,15 @@ function onCancel() {
</div>
</div>
<!-- An invocation has been loaded, display the graph -->
<div v-if="invocation">
<div v-if="workflow && !isSubworkflow">
<InvocationGraph
class="mt-1"
:invocation="invocation"
:workflow="workflow"
:is-terminal="invocationAndJobTerminal"
:is-scheduled="invocationSchedulingTerminal"
:is-full-page="isFullPage"
:show-minimap="isFullPage" />
</div>
<BAlert v-else-if="isSubworkflow" variant="secondary" show>
This subworkflow is
<HelpText :uri="`galaxy.invocations.states.${invocation.state}`" :text="invocation.state" />.
<ExternalLink :href="withPrefix(`/workflows/invocations/${invocation.id}`)"> Click here </ExternalLink>
to view this subworkflow in graph view.
</BAlert>
<div v-if="invocation && workflow && !isSubworkflow">
<InvocationGraph
class="mt-1"
:invocation="invocation"
:workflow="workflow"
:is-terminal="invocationAndJobTerminal"
:is-scheduled="invocationSchedulingTerminal"
:is-full-page="isFullPage"
:show-minimap="isFullPage" />
</div>
</div>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ function getWorkflowName() {
<p>TODO: Insert readonly version of workflow editor here</p>
</BTab> -->
<BTab
v-if="!props.isSubworkflow"
title="Report"
title-item-class="invocation-report-tab"
:disabled="!invocationStateSuccess || !workflow"
Expand Down

0 comments on commit 1196d2a

Please sign in to comment.