Dieser Commit ist enthalten in:
Ursprung
49fe9728e5
Commit
85f570433d
@ -56,11 +56,11 @@
|
||||
<TeamList {data}/>
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<span slot="title">Referees</span>
|
||||
<span slot="title">Schiedsrichter</span>
|
||||
<RefereesList {data}/>
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<span slot="title">Fights</span>
|
||||
<span slot="title">Kämpfe</span>
|
||||
<FightList {data}/>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
@ -131,7 +131,7 @@
|
||||
on:click={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox>
|
||||
{/each}
|
||||
<div class="mt-4">
|
||||
<Button disabled={prefixEdit === player.prefix.name && activePerms === player.perms}
|
||||
<Button disabled={prefixEdit === (player?.prefix.name ?? "") && activePerms === (player?.perms ?? [])}
|
||||
on:click={save}>Save
|
||||
</Button>
|
||||
</div>
|
||||
|
@ -125,11 +125,11 @@
|
||||
let groupSearch = "";
|
||||
|
||||
$: selectableGroups = [{
|
||||
name: "None",
|
||||
name: "Keine",
|
||||
value: ""
|
||||
}, {
|
||||
value: groupSearch,
|
||||
name: `Create: '${groupSearch}'`
|
||||
name: `Erstelle: '${groupSearch}'`
|
||||
}, ...$groups.map(group => {
|
||||
return {
|
||||
name: group,
|
||||
|
@ -48,7 +48,7 @@
|
||||
<div class="flex flex-wrap">
|
||||
<button class="btn mt-2" on:click={logout}>{t("dashboard.buttons.logout")}</button>
|
||||
{#if user.perms.includes("MODERATION")}
|
||||
<a class="btn w-fit mt-2" href="/admin">{t("dashboard.buttons.admin")}</a>
|
||||
<a class="btn w-fit mt-2" href="/admin" data-astro-reload>{t("dashboard.buttons.admin")}</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,7 +4,7 @@ import {getImage} from "astro:assets";
|
||||
import {astroI18n} from "astro-i18n";
|
||||
import {SEO} from "astro-seo";
|
||||
import {ViewTransitions} from "astro:transitions";
|
||||
const {title, description} = Astro.props.frontmatter || Astro.props;
|
||||
const {title, description, clientSideRouter = true} = Astro.props.frontmatter || Astro.props;
|
||||
|
||||
import "../../public/fonts/roboto/roboto.css";
|
||||
|
||||
@ -40,7 +40,7 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &
|
||||
|
||||
<slot name="head"/>
|
||||
|
||||
<ViewTransitions />
|
||||
{clientSideRouter && <ViewTransitions/>}
|
||||
</head>
|
||||
<body class="dark:bg-zinc-800">
|
||||
<slot/>
|
||||
|
@ -3,6 +3,6 @@ import App from "../../components/admin/App.svelte";
|
||||
import Basic from "../../layouts/Basic.astro";
|
||||
---
|
||||
|
||||
<Basic>
|
||||
<Basic clientSideRouter={false}>
|
||||
<App client:only="svelte"/>
|
||||
</Basic>
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren