Dashboard Error
This commit is contained in:
@@ -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}
|
||||||
<a class="flex ml-12" href="/dashboard/aufnahme/{objekt.aufnahmen[0].uid}">{objekt.adresse}<br>{objekt.plz} {objekt.ort}</a>
|
{#if objekt.aufnahmen.length > 0}
|
||||||
<hr class="border-gray-600">
|
<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}
|
{/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>
|
||||||
|
|||||||
@@ -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", "/")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user