Skip to content

Commit

Permalink
Merge pull request #126 from LouisDeconinck/optional-settings-button
Browse files Browse the repository at this point in the history
Made button optional in the settings page
  • Loading branch information
scosman authored Aug 29, 2024
2 parents 0638f89 + dae229f commit fe99cc3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -128,7 +128,7 @@
{/if}
</button>
</div>
{:else}
{:else if editButtonTitle && editLink}
<!-- !editable -->
<a href={editLink} class="mt-1">
<button
Expand Down

0 comments on commit fe99cc3

Please sign in to comment.