Tasks und Vertragstyp fix #17
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
const dataStore = useDataStore()
|
||||
|
||||
const router = useRouter()
|
||||
const getShowRoute = (entityType, id) => entityType === "tasks" ? `/tasks/show/${id}` : `/standardEntity/${entityType}/show/${id}`
|
||||
|
||||
const dataType = dataStore.dataTypes[props.type]
|
||||
|
||||
@@ -59,7 +60,7 @@
|
||||
<a
|
||||
v-for="item in props.rows"
|
||||
class="my-1"
|
||||
@click="router.push(`/standardEntity/${type}/show/${item.id}`)"
|
||||
@click="router.push(getShowRoute(type, item.id))"
|
||||
>
|
||||
<p class="truncate text-left text-primary text-xl">{{dataType.templateColumns.find(i => i.title).key ? item[dataType.templateColumns.find(i => i.title).key] : null}}</p>
|
||||
<p class="text-sm">
|
||||
@@ -126,4 +127,4 @@
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user