File tree Expand file tree Collapse file tree
client/src/components/Tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { computed } from " vue" ;
3+ import { RouterLink } from " vue-router" ;
34
45import type { JobResponse } from " @/api/jobs" ;
56
7+ import ExternalLink from " ../ExternalLink.vue" ;
8+
69const 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 >
You can’t perform that action at this time.
0 commit comments