Updates
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2024-03-16 00:11:02 +01:00
Ursprung 49fe9728e5
Commit 85f570433d
6 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -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>

Datei anzeigen

@ -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>

Datei anzeigen

@ -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,

Datei anzeigen

@ -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>

Datei anzeigen

@ -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/>

Datei anzeigen

@ -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>