From dae229f922c8836e862f7be9a6c99545a56825d5 Mon Sep 17 00:00:00 2001 From: Louis Deconinck Date: Wed, 28 Aug 2024 16:17:13 +0200 Subject: [PATCH] Made button optional in the settings page --- .../(admin)/account/(menu)/settings/settings_module.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/(admin)/account/(menu)/settings/settings_module.svelte b/src/routes/(admin)/account/(menu)/settings/settings_module.svelte index 4541c915..2370e5e3 100644 --- a/src/routes/(admin)/account/(menu)/settings/settings_module.svelte +++ b/src/routes/(admin)/account/(menu)/settings/settings_module.svelte @@ -30,8 +30,8 @@ export let formTarget: string = "" export let successTitle = "Success" export let successBody = "" - export let editButtonTitle: string = "" - export let editLink: string = "" + export let editButtonTitle: string | null = null + export let editLink: string | null = null export let saveButtonTitle: string = "Save" const handleSubmit: SubmitFunction = () => { @@ -128,7 +128,7 @@ {/if} - {:else} + {:else if editButtonTitle && editLink}