remove paypal link settings and show link when registered successfully
All checks were successful
delpoy / build-and-deploy (push) Successful in 1m1s

This commit is contained in:
2024-11-27 20:34:07 +01:00
parent 45f8550604
commit 6635591788
8 changed files with 39 additions and 23 deletions

View File

@ -22,9 +22,7 @@ export const load: PageServerLoad = async ({ parent, cookies }) => {
return {
settings: {
global: {
paypal_link: settings['global.paypal_link'] ?? ''
},
global: {},
register: {
enabled: settings['register.enabled'] ?? true,
disabled_title: settings['register.disabled_title'] ?? 'Anmeldung geschlossen',

View File

@ -8,9 +8,7 @@
await fetch(`${env.PUBLIC_BASE_PATH}/admin/settings`, {
method: 'POST',
body: JSON.stringify({
global: {
paypal_link: returnIfNoDup(settings.global.paypal_link, data.settings.global.paypal_link)
},
global: {},
register: {
enabled: returnIfNoDup(settings.register.enabled, data.settings.register.enabled),
disabled_title: returnIfNoDup(
@ -35,13 +33,13 @@
<div class="h-full flex flex-col items-center justify-between">
<div class="grid grid-cols-3 w-full [&>*]:mx-8">
<div>
<!--div>
<div class="divider">Global</div>
<label class="label">
<span class="label-text">PayPal-Spendenlink</span>
<input type="text" class="input input-bordered" bind:value={settings.global.paypal_link} />
</label>
</div>
</div-->
<div>
<div class="divider">Anmeldung</div>
<label class="label cursor-pointer">