Dashboard Error

This commit is contained in:
Moritz Utcke
2025-03-11 16:42:48 -03:00
parent 8b489a94cc
commit c588f69b0c
2 changed files with 8 additions and 6 deletions

View File

@@ -6,11 +6,11 @@
import DashboardNotification from "./DashboardNotification.svelte"; import DashboardNotification from "./DashboardNotification.svelte";
import { notifications } from "#components/NotificationProvider/shared.js"; import { notifications } from "#components/NotificationProvider/shared.js";
import ThemeController from "#components/ThemeController.svelte"; import ThemeController from "#components/ThemeController.svelte";
import { BenutzerClient, ObjektClient } from "#components/Ausweis/types.js"; import { BenutzerClient, ObjektKomplettClient } from "#components/Ausweis/types.js";
export let lightTheme: boolean; export let lightTheme: boolean;
export let benutzer: BenutzerClient; export let benutzer: BenutzerClient;
export let objekte: ObjektClient[]; export let objekte: ObjektKomplettClient[];
const rippleOptions: RippleOptions = { const rippleOptions: RippleOptions = {
center: false, center: false,
@@ -43,8 +43,10 @@
Gebäude Gebäude
</a> </a>
{#each objekte as objekt} {#each objekte as objekt}
{#if objekt.aufnahmen.length > 0}
<a class="flex ml-12" href="/dashboard/aufnahme/{objekt.aufnahmen[0].uid}">{objekt.adresse}<br>{objekt.plz} {objekt.ort}</a> <a class="flex ml-12" href="/dashboard/aufnahme/{objekt.aufnahmen[0].uid}">{objekt.adresse}<br>{objekt.plz} {objekt.ort}</a>
<hr class="border-gray-600"> <hr class="border-gray-600">
{/if}
{/each} {/each}
<!-- <button use:ripple={rippleOptions} class="button-tab"> <!-- <button use:ripple={rippleOptions} class="button-tab">
<EnvelopeClosed width={22} height={22} /> <EnvelopeClosed width={22} height={22} />
@@ -94,7 +96,7 @@
<Bell size={24} /> <Bell size={24} />
</button> </button>
</div> </div>
<ul tabindex="0" class="dropdown-content mb-2 border border-base-300 z-10 menu py-4 px-0 bg-base-200 rounded-box w-80"> <ul class="dropdown-content mb-2 border border-base-300 z-10 menu py-4 px-0 bg-base-200 rounded-box w-80">
<NotificationProvider component={DashboardNotification} /> <NotificationProvider component={DashboardNotification} />
</ul> </ul>
</div> </div>

View File

@@ -26,6 +26,6 @@ describe('Benutzer Logout', () => {
it("meldet einen Nutzer ab und leitet auf die Login Seite weiter", () => { it("meldet einen Nutzer ab und leitet auf die Login Seite weiter", () => {
cy.visit("/auth/logout") cy.visit("/auth/logout")
cy.url().should("include", "/auth/login") cy.url().should("include", "/")
}) })
}) })