Skip to content

Commit 700cb95

Browse files
show a link to job(s) on job success page
Is a step towards galaxyproject#20014. Currently, showing multiple jobs in this view can be expensive (as mentioned here galaxyproject#20145 (comment)).
1 parent e553dc6 commit 700cb95

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

client/src/components/Tool/ToolSuccessMessage.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<script setup lang="ts">
22
import { computed } from "vue";
3+
import { RouterLink } from "vue-router";
34
45
import type { JobResponse } from "@/api/jobs";
56
7+
import ExternalLink from "../ExternalLink.vue";
8+
69
const props = defineProps<{
710
jobResponse: JobResponse;
811
toolName: string;
@@ -35,5 +38,17 @@ const nOutputsText = computed(() => (nOutputs.value > 1 ? `${nOutputs.value} out
3538
the job has been run the status will change from 'running' to 'finished' if completed successfully or
3639
'error' if problems were encountered.
3740
</p>
41+
<p v-if="nJobs > 1">
42+
Here is a link to each job:
43+
<ExternalLink v-for="job in jobResponse.jobs" :key="job.id" :href="`/jobs/${job.id}/view`">
44+
{{ job.id }}
45+
</ExternalLink>
46+
</p>
47+
<p v-else-if="jobResponse.jobs[0]">
48+
Here is a link to the job:
49+
<RouterLink :to="`/jobs/${jobResponse.jobs[0].id}/view`">
50+
{{ jobResponse.jobs[0]?.id }}
51+
</RouterLink>
52+
</p>
3853
</div>
3954
</template>

0 commit comments

Comments
 (0)