diff --git a/src/components/Dashboard/DashboardSidebar.svelte b/src/components/Dashboard/DashboardSidebar.svelte
index e6edc9eb..e0a2e43d 100644
--- a/src/components/Dashboard/DashboardSidebar.svelte
+++ b/src/components/Dashboard/DashboardSidebar.svelte
@@ -15,10 +15,11 @@
BenutzerClient,
ObjektKomplettClient,
} from "#components/Ausweis/types.js";
- import { RechnungSchema } from "src/generated/zod/rechnung.js";
+ import { Benutzer } from "#lib/server/prisma.js";
export let lightTheme: boolean;
- export let benutzer: BenutzerClient;
+ export let benutzer: Benutzer;
+ export let besteller: Benutzer;
let id: string;
@@ -70,14 +71,14 @@
- {benutzer.vorname} {benutzer.name}
+ {besteller.vorname} {besteller.name}
Eigentümer oder im Auftrag
- Telefon {benutzer.telefon}
+ Telefon {besteller.telefon}
diff --git a/src/layouts/DashboardLayout.astro b/src/layouts/DashboardLayout.astro
index 2aca69c2..e06780f8 100644
--- a/src/layouts/DashboardLayout.astro
+++ b/src/layouts/DashboardLayout.astro
@@ -3,14 +3,15 @@
import "../style/global.css";
import "../../svelte-dialogs.config.js";
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte";
-import { BenutzerClient } from "#components/Ausweis/types";
+import { Benutzer } from "#lib/server/prisma";
export interface Props {
title: string;
- user: BenutzerClient;
+ user: Benutzer;
+ besteller: Benutzer;
}
-const { title, user } = Astro.props;
+const { title, user, besteller } = Astro.props;
if (!user) {
Astro.redirect("/auth/login", 302);
@@ -121,6 +122,7 @@ let lightTheme = Astro.cookies.get("theme")?.value === "light";
diff --git a/src/modules/Dashboard/DashboardAufnahmeModule.svelte b/src/modules/Dashboard/DashboardAufnahmeModule.svelte
index 19873145..40160fd5 100644
--- a/src/modules/Dashboard/DashboardAufnahmeModule.svelte
+++ b/src/modules/Dashboard/DashboardAufnahmeModule.svelte
@@ -56,7 +56,7 @@
{#if ausweis.aufnahme.bilder.length > 0}
{#each ausweis.aufnahme.bilder as bild, i (i)}
-
+
{/each}
diff --git a/src/pages/dashboard/objekte/[id].astro b/src/pages/dashboard/objekte/[id].astro
index 9f088af2..5c910d3e 100644
--- a/src/pages/dashboard/objekte/[id].astro
+++ b/src/pages/dashboard/objekte/[id].astro
@@ -36,6 +36,7 @@ if (user.rolle === Enums.BenutzerRolle.USER) {
},
include: {
rechnung: true,
+ benutzer: true,
aufnahme: {
include: {
bilder: true,
@@ -53,6 +54,7 @@ if (user.rolle === Enums.BenutzerRolle.USER) {
},
include: {
rechnung: true,
+ benutzer: true,
aufnahme: {
include: {
bilder: true,
@@ -70,7 +72,7 @@ if (!ausweis) {
---
-
+
\ No newline at end of file