Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: correct notes form submit
Browse files Browse the repository at this point in the history
brettski committed Dec 13, 2023
1 parent 79ed0f0 commit 2ed23b0
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/_components/members/MemberConnectModal.svelte
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@
onUpdated({ form }) {
if (form.valid) {
notes = form.data.notes;
//dispatch('closeDetail');
dispatch('closeDetail');
}
}
}
@@ -81,7 +81,7 @@
</div>
<div
use:clickOutside
on:click_outside={() => dispatch('closeModal')}
on:click_outside={() => dispatch('closeDetail')}
class="transform overflow-hidden rounded-lg bg-white px-4 pb-4
pt-5 shadow-xl transition-all sm:w-full sm:max-w-sm sm:p-6 md:max-w-2xl"
role="dialog"
@@ -142,7 +142,7 @@
href="/my/profiles/shared">Shared Profile</a>
with {firstName}
</p>
<form use:enhance method="POST">
<form use:enhance method="POST" action="/my/network/members">
<div class="mt-2">
<label for="notes" class="my-2 block text-sm font-medium text-gray-500"
>Your private notes:</label>
2 changes: 1 addition & 1 deletion src/_components/members/MemberConnecting.svelte
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@
bind:meSharingWith
bind:isFollowing
bind:notes
on:closeModal={() => (showMemberConnectModal = false)}
on:closeDetail={() => (showMemberConnectModal = false)}
on:STOP_SHARING={() => stopShareWith()}
on:START_SHARING={() => shareWith()}></MemberConnectModal>
{/if}

0 comments on commit 2ed23b0

Please sign in to comment.