Changed Back Button

This commit is contained in:
2025-02-03 11:05:47 +01:00
parent c207329a3e
commit cc81d18344
3 changed files with 25 additions and 5 deletions

View File

@@ -134,9 +134,9 @@ const contentChanged = (content, datapoint) => {
<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>

View File

@@ -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>