diff --git a/src/components/Ausweis/ButtonWeiterHilfe.svelte b/src/components/Ausweis/ButtonWeiterHilfe.svelte index 183e4149..e62a1ded 100644 --- a/src/components/Ausweis/ButtonWeiterHilfe.svelte +++ b/src/components/Ausweis/ButtonWeiterHilfe.svelte @@ -56,6 +56,7 @@ `${location.pathname}?uid=${ausweis.uid}` ); + localStorage.clear() window.location.href = `/speichern-erfolgreich?uid=${ausweis.uid}` } } diff --git a/src/components/Ausweis/Verbrauch.svelte b/src/components/Ausweis/Verbrauch.svelte index e3a70411..66d0c05c 100644 --- a/src/components/Ausweis/Verbrauch.svelte +++ b/src/components/Ausweis/Verbrauch.svelte @@ -117,14 +117,14 @@ xl:grid-cols-3 xl:gap-x-8 xl:gap-y-8 Verbräuche öffnet sich dann. - + {#if !ausweis.zusaetzliche_heizquelle}
- {#if !ausweis.zusaetzliche_heizquelle} + zusätzliche Heizquelle - {/if}
@@ -145,6 +144,8 @@ xl:grid-cols-3 xl:gap-x-8 xl:gap-y-8 gemacht werden, da alle 3 Verbrauchsjahre zusammenhängend sein sollen.
+ {/if} + diff --git a/src/components/Ausweis/types.ts b/src/components/Ausweis/types.ts index 1be8e526..44a3c4c1 100644 --- a/src/components/Ausweis/types.ts +++ b/src/components/Ausweis/types.ts @@ -157,19 +157,15 @@ export type UnterlageClient = Omit export type BildClient = Omit export type ObjektKomplettClient = ObjektClient & { - bilder: BildClient[], - unterlagen: UnterlageClient[], - aufnahmen: (AufnahmeClient & { - bedarfsausweis_wohnen?: BedarfsausweisWohnenClient, - verbrauchsausweis_wohnen?: VerbrauchsausweisWohnenClient, - verbrauchsausweis_gewerbe?: VerbrauchsausweisGewerbeClient - })[] + aufnahmen: AufnahmeKomplettClient[] } export type AufnahmeKomplettClient = AufnahmeClient & { - bedarfsausweis_wohnen: BedarfsausweisWohnenClient[], - verbrauchsausweis_wohnen: VerbrauchsausweisWohnenClient[], - verbrauchsausweis_gewerbe: VerbrauchsausweisGewerbeClient[] + bilder: BildClient[], + unterlagen: UnterlageClient[], + bedarfsausweis_wohnen?: BedarfsausweisWohnenClient, + verbrauchsausweis_wohnen?: VerbrauchsausweisWohnenClient, + verbrauchsausweis_gewerbe?: VerbrauchsausweisGewerbeClient } export type GEGNachweisWohnenClient = Omit \ No newline at end of file diff --git a/src/components/Dashboard/DashboardObjekt.svelte b/src/components/Dashboard/DashboardObjekt.svelte index 83815174..c3f9a65e 100644 --- a/src/components/Dashboard/DashboardObjekt.svelte +++ b/src/components/Dashboard/DashboardObjekt.svelte @@ -6,8 +6,7 @@ export let objekt: ObjektKomplettClient; - // TODO - const objektBild = objekt.bilder.find(bild => bild.kategorie === Enums.BilderKategorie.Gebaeude); + const objektBild = objekt.aufnahmen[0].bilder.find(bild => bild.kategorie === Enums.BilderKategorie.Gebaeude);
diff --git a/src/layouts/AusweisLayoutDaten.astro b/src/layouts/AusweisLayoutDaten.astro index 38548539..1cb6f21f 100644 --- a/src/layouts/AusweisLayoutDaten.astro +++ b/src/layouts/AusweisLayoutDaten.astro @@ -14,11 +14,14 @@ export interface Props { const { title } = Astro.props; --- - diff --git a/src/modules/KundendatenModule.svelte b/src/modules/KundendatenModule.svelte index 35cbd919..75bb9221 100644 --- a/src/modules/KundendatenModule.svelte +++ b/src/modules/KundendatenModule.svelte @@ -109,6 +109,7 @@ // uid: ausweis.uid, // }); + localStorage.clear() window.location.href = `/kaufabschluss?uid=${ausweis.uid}`; } @@ -140,6 +141,9 @@ Authorization: `Bearer ${Cookies.get(API_ACCESS_TOKEN_COOKIE_NAME)}` } }) + + // Alle alten Ausweisdateien im localStorage löschen. + localStorage.clear(); if (bezahlmethode === Enums.Bezahlmethoden.rechnung) { window.location.href = `/payment/success?uid=${uid}` diff --git a/src/modules/VerbrauchsausweisWohnen/VerbrauchsausweisWohnenModule.svelte b/src/modules/VerbrauchsausweisWohnen/VerbrauchsausweisWohnenModule.svelte index d1a1ca2a..7407ead7 100644 --- a/src/modules/VerbrauchsausweisWohnen/VerbrauchsausweisWohnenModule.svelte +++ b/src/modules/VerbrauchsausweisWohnen/VerbrauchsausweisWohnenModule.svelte @@ -211,10 +211,7 @@ const ausweisart: Enums.Ausweisart = "VerbrauchsausweisWohnen" -
+