Changed Back Button
This commit is contained in:
@@ -16,7 +16,7 @@ const {type} = props
|
||||
|
||||
defineShortcuts({
|
||||
'backspace': () => {
|
||||
router.push(`/standardEntity/${type}`)
|
||||
router.back()
|
||||
},
|
||||
'arrowleft': () => {
|
||||
if(openTab.value > 0){
|
||||
@@ -136,6 +136,12 @@ const getAvailableQueryStringData = () => {
|
||||
returnString += `&project=${props.item.id}`
|
||||
}
|
||||
|
||||
if(props.item.plant) {
|
||||
returnString += `&plant=${props.item.plant.id}`
|
||||
} else if(type === "plants") {
|
||||
returnString += `&plant=${props.item.id}`
|
||||
}
|
||||
|
||||
return returnString
|
||||
|
||||
}
|
||||
@@ -150,9 +156,9 @@ const getAvailableQueryStringData = () => {
|
||||
<UButton
|
||||
icon="i-heroicons-chevron-left"
|
||||
variant="outline"
|
||||
@click="router.push(`/standardEntity/${type}`)"
|
||||
@click="router.back()/*router.push(`/standardEntity/${type}`)*/"
|
||||
>
|
||||
{{dataType.label}}
|
||||
<!-- {{dataType.label}}-->
|
||||
</UButton>
|
||||
</template>
|
||||
<template #center>
|
||||
|
||||
Reference in New Issue
Block a user