Anpassung Menü

This commit is contained in:
2026-08-09 18:44:21 +02:00
parent b80e2d5a6c
commit 8ffbda875e
13 changed files with 365 additions and 58 deletions

View File

@@ -4,6 +4,7 @@
import { del, get, post, put } from "../api.js";
import { clear, el, mount } from "../dom.js";
import { appBar } from "../appbar.js";
const ROLE_LABEL = { owner: "Eigentümer", editor: "Bearbeiter", viewer: "Nur lesen" };
@@ -352,9 +353,10 @@ export async function shareView(root, { listId, back }) {
const openInvites = invites.filter((i) => i.status === "pending");
mount(root,
el("header.bar", {},
el("button.linklike", { type: "button", onclick: back }, " Zurück zur Liste")
),
appBar({
back: { label: "Zurück", onClick: back },
title: list ? list.name : "Teilen",
}),
banner ? el(banner.kind === "error" ? "p.error" : "p.notice", {}, banner.message) : null,
el("section.card", {},