Skip to content

Commit

Permalink
feat: prefill edit username dialog with current value
Browse files Browse the repository at this point in the history
fixes #3
  • Loading branch information
lastarc committed Jul 19, 2024
1 parent aaede0c commit 6dcd5a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/components/ui/navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@
<div class="dropdown-content">
<button
class="button is-text is-small dropdown-item navbar-item is-display-block"
on:click={() => (editUsernameModalOpen = true)}
on:click={() => {
newUsernameInput.value = $page.data.profile?.name || ''
editUsernameModalOpen = true
}}
>
Edit Username
</button>
Expand Down

0 comments on commit 6dcd5a8

Please sign in to comment.