4. Zwischenstand
This commit is contained in:
@@ -246,7 +246,15 @@ const types = computed(() => {
|
||||
return templateTypes.filter((type) => selectedTypes.value.find(i => i.key === type.key))
|
||||
})
|
||||
|
||||
const selectItem = (item) => {
|
||||
const unwrapSelectedRow = (itemLike) => itemLike?.original || itemLike
|
||||
|
||||
const selectItem = (itemLike) => {
|
||||
const item = unwrapSelectedRow(itemLike)
|
||||
|
||||
if (!item?.id) {
|
||||
return
|
||||
}
|
||||
|
||||
if (item.state === "Entwurf") {
|
||||
router.push(`/createDocument/edit/${item.id}`)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user