feat(events): restore responsive appointment overview and creation
All checks were successful
Build and Release FEDEO / verify (push) Successful in 1m3s
Build and Release FEDEO / build-and-release (push) Successful in 6m11s

This commit is contained in:
2026-10-15 17:36:44 +02:00
parent ee8f16056f
commit e933782731
4 changed files with 385 additions and 14 deletions

View File

@@ -385,6 +385,8 @@ const getEntityModalCreateQuery = (datapoint) => {
const getPostSaveRoute = () => {
if (type !== "events") return null
if (route.query.returnTo === "events") return "/events"
if (route.query.returnTo === "plantafel") {
return {
path: "/organisation/plantafel",
@@ -475,25 +477,21 @@ const updateItem = async () => {
<template>
<UDashboardNavbar
v-if="!props.inModal"
:title="item.id ? `${dataType.labelSingle} bearbeiten` : `${dataType.labelSingle} erstellen`"
:ui="{center: 'flex items-stretch gap-1.5 min-w-0'}"
>
<template #toggle>
<div v-if="platform === 'mobile'"></div>
</template>
<template #left>
<template #leading>
<UButton
icon="i-heroicons-chevron-left"
variant="outline"
aria-label="Zurück"
@click="router.back()"
>
</UButton>
</template>
<template #center>
<h1
v-if="item"
:class="['text-xl','font-medium', 'text-center']"
>{{ item.id ? `${dataType.labelSingle} bearbeiten` : `${dataType.labelSingle} erstellen` }}</h1>
</template>
<template #right>
<ArchiveButton
color="error"
@@ -517,7 +515,7 @@ const updateItem = async () => {
Erstellen
</UButton>
<UButton
@click="router.push(item.id ? `/standardEntity/${type}/show/${item.id}` : `/standardEntity/${type}`)"
@click="router.push(getPostSaveRoute() || (item.id ? `/standardEntity/${type}/show/${item.id}` : `/standardEntity/${type}`))"
color="red"
class="ml-1"
>
@@ -527,14 +525,9 @@ const updateItem = async () => {
</UDashboardNavbar>
<UDashboardNavbar
v-else
:title="props.floatingWindow ? '' : (item.id ? `${dataType.labelSingle} bearbeiten` : `${dataType.labelSingle} erstellen`)"
:ui="{center: 'flex items-stretch gap-1.5 min-w-0'}"
>
<template #center>
<h1
v-if="item && !props.floatingWindow"
:class="['text-xl', 'font-medium']"
>{{ item.id ? `${dataType.labelSingle} bearbeiten` : `${dataType.labelSingle} erstellen` }}</h1>
</template>
<template #right>
<UButton
v-if="item.id"