
Show the worker assigned to the task in the task details view, as link to the worker itself.
9 lines
312 B
Vue
9 lines
312 B
Vue
<template>
|
|
<router-link :to="{ name: 'workers', params: { workerID: worker.id } }">{{ worker.name }} ({{ worker.address }})</router-link>
|
|
</template>
|
|
|
|
<script setup>
|
|
// 'worker' should be a Worker or TaskWorker (see schemas defined in `flamenco-openapi.yaml`).
|
|
const props = defineProps(['worker']);
|
|
</script>
|