makefile und ausweistyp

This commit is contained in:
Moritz Utcke
2025-02-22 11:23:44 +11:00
parent 412d2dc7ef
commit c05d02b002
6 changed files with 16 additions and 12 deletions

View File

@@ -49,7 +49,7 @@
ObjektClient,
AufnahmeClient,
} from "#components/Ausweis/types.js";
import { Enums } from "#lib/client/prisma";
import { Enums } from "#lib/client/prisma.js";
// TODO: Vom Server sollte ein volles Objekt kommen, dass alle Subobjekte enthält, weil es sonst zu Problemen führen kann
// wenn aufnahme oder objekt nicht existiert...
@@ -58,6 +58,7 @@
export let aufnahme: AufnahmeClient
export let user: BenutzerClient = {} as BenutzerClient;
export let bilder: UploadedGebaeudeBild[] = []
export let ausweistyp: Enums.AusweisTyp;
if (Object.keys(ausweis).length === 0) {
const localStorageAusweis = localStorage.getItem("ausweis");
@@ -177,7 +178,7 @@ const ausweisart = Enums.Ausweisart.VerbrauchsausweisWohnen
<div id="progress-box" class="w-full box relative px-4 py-3 text-center order-2 self-stretch">
<h1 class="text-secondary text-3xl m-0">Energieausweis erstellen</h1>
<h2 class="text-primary text-xl">{ausweisart} {PRICES[ausweisart][Enums.AusweisTyp.Standard]}</h2>
<h2 class="text-primary text-xl">{ausweisart} {PRICES[ausweisart][ausweistyp]}</h2>
<Progressbar active={0}/>
</div>
@@ -301,6 +302,7 @@ const ausweisart = Enums.Ausweisart.VerbrauchsausweisWohnen
bind:objekt
bind:aufnahme
ausweisart={Enums.Ausweisart.VerbrauchsausweisWohnen}
{ausweistyp}
>
</ButtonWeiterHilfe>