remove paypal link settings and show link when registered successfully
All checks were successful
delpoy / build-and-deploy (push) Successful in 1m1s
All checks were successful
delpoy / build-and-deploy (push) Successful in 1m1s
This commit is contained in:
@ -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',
|
||||
|
@ -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">
|
||||
|
Reference in New Issue
Block a user