This commit is contained in:
2024-12-14 18:10:50 +01:00
parent d4ac123654
commit d7000c084b
16 changed files with 54 additions and 54 deletions

View File

@@ -155,14 +155,14 @@
<h1>Permissions</h1>
{#each perms.perms as perm}
<Checkbox checked={activePerms.includes(perm)}
on:click={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox>
onclick={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox>
{/each}
<div class="mt-4">
<Button disabled={prefixEdit === (player?.prefix.name ?? "") && activePerms === (player?.perms ?? [])}
on:click={save}>Save
onclick={save}>Save
</Button>
{#if $me != null && $me.perms.includes("ADMINISTRATION")}
<Button on:click={() => resetPasswordModal = true}>
<Button onclick={() => resetPasswordModal = true}>
Reset Password
</Button>
@@ -174,10 +174,10 @@
{#snippet footer()}
<Button class="ml-auto mr-4" on:click={resetResetPassword}>
<Button class="ml-auto mr-4" onclick={resetResetPassword}>
Cancel
</Button>
<Button disabled={resetPassword === "" || resetPassword !== resetPasswordRepeat} on:click={resetPW}>
<Button disabled={resetPassword === "" || resetPassword !== resetPasswordRepeat} onclick={resetPW}>
Reset Password
</Button>