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}/> <TeamList {data}/>
</TabItem> </TabItem>
<TabItem> <TabItem>
<span slot="title">Referees</span> <span slot="title">Schiedsrichter</span>
<RefereesList {data}/> <RefereesList {data}/>
</TabItem> </TabItem>
<TabItem> <TabItem>
<span slot="title">Fights</span> <span slot="title">Kämpfe</span>
<FightList {data}/> <FightList {data}/>
</TabItem> </TabItem>
</Tabs> </Tabs>

Datei anzeigen

@ -131,7 +131,7 @@
on:click={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox> on:click={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox>
{/each} {/each}
<div class="mt-4"> <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 on:click={save}>Save
</Button> </Button>
</div> </div>

Datei anzeigen

@ -125,11 +125,11 @@
let groupSearch = ""; let groupSearch = "";
$: selectableGroups = [{ $: selectableGroups = [{
name: "None", name: "Keine",
value: "" value: ""
}, { }, {
value: groupSearch, value: groupSearch,
name: `Create: '${groupSearch}'` name: `Erstelle: '${groupSearch}'`
}, ...$groups.map(group => { }, ...$groups.map(group => {
return { return {
name: group, name: group,

Datei anzeigen

@ -48,7 +48,7 @@
<div class="flex flex-wrap"> <div class="flex flex-wrap">
<button class="btn mt-2" on:click={logout}>{t("dashboard.buttons.logout")}</button> <button class="btn mt-2" on:click={logout}>{t("dashboard.buttons.logout")}</button>
{#if user.perms.includes("MODERATION")} {#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} {/if}
</div> </div>
</div> </div>

Datei anzeigen

@ -4,7 +4,7 @@ import {getImage} from "astro:assets";
import {astroI18n} from "astro-i18n"; import {astroI18n} from "astro-i18n";
import {SEO} from "astro-seo"; import {SEO} from "astro-seo";
import {ViewTransitions} from "astro:transitions"; 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"; import "../../public/fonts/roboto/roboto.css";
@ -40,7 +40,7 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &
<slot name="head"/> <slot name="head"/>
<ViewTransitions /> {clientSideRouter && <ViewTransitions/>}
</head> </head>
<body class="dark:bg-zinc-800"> <body class="dark:bg-zinc-800">
<slot/> <slot/>

Datei anzeigen

@ -3,6 +3,6 @@ import App from "../../components/admin/App.svelte";
import Basic from "../../layouts/Basic.astro"; import Basic from "../../layouts/Basic.astro";
--- ---
<Basic> <Basic clientSideRouter={false}>
<App client:only="svelte"/> <App client:only="svelte"/>
</Basic> </Basic>