Update Authentication + Build Script

This commit is contained in:
Moritz Utcke
2023-05-18 14:01:54 +04:00
parent 5559f5ca4d
commit 492b790527
22 changed files with 276 additions and 163 deletions

View File

@@ -3,16 +3,16 @@
import { Gebaeude } from "src/lib/Gebaeude";
import HelpLabel from "~/components/HelpLabel.svelte";
import { auditHeizungGebaeudeBaujahr } from "../Verbrauchsausweis/audits/HeizungGebaeudeBaujahr";
import { addNotification, deleteNotification } from "../Notifications/shared";
import { addNotification, deleteNotification } from "@ibcornelsen/ui";
import TagInput from "../TagInput.svelte";
import { writable } from "svelte/store";
export let gebaeude: Gebaeude;
// TODO: Das ist scheise
let tags = writable([]);
$: ausweis = gebaeude.ausweis || new Verbrauchsausweis();
let baujahr = writable(gebaeude.baujahr);
let baujahrAnlage = writable(gebaeude.ausweis.baujahr_anlage);
</script>
<div class="GRB">
@@ -96,9 +96,7 @@
deleteNotification("HEIZUNG_BAUJAHR")
}}
className="{auditHeizungGebaeudeBaujahr(gebaeude) ? "linked" : ""}"
required
autocomplete="off"
bind:tags
bind:tags={baujahrAnlage}
/>
</div>
</div>
@@ -133,9 +131,7 @@
deleteNotification("GEBAEUDE_BAUJAHR")
}}
className="{auditHeizungGebaeudeBaujahr(gebaeude) ? "linked" : ""}"
required
autocomplete="off"
bind:tags
bind:tags={baujahr}
/>
</div>
</div>