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 { notifications } from "#components/NotificationProvider/shared.js";
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 benutzer: BenutzerClient;
export let objekte: ObjektClient[];
export let objekte: ObjektKomplettClient[];
const rippleOptions: RippleOptions = {
center: false,
@@ -43,8 +43,10 @@
Gebäude
</a>
{#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>
<hr class="border-gray-600">
{/if}
{/each}
<!-- <button use:ripple={rippleOptions} class="button-tab">
<EnvelopeClosed width={22} height={22} />
@@ -94,7 +96,7 @@
<Bell size={24} />
</button>
</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} />
</ul>
</div>

View File

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