Skip to content

Commit

Permalink
Merge pull request #115 from ThatConference/next/feature
Browse files Browse the repository at this point in the history
feature -> production
  • Loading branch information
theClarkSell committed Oct 19, 2023
2 parents 72d5323 + 15ada0e commit 7457360
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thatconference.com",
"version": "5.1.2",
"version": "5.1.3",
"description": "THATConference.com website",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion src/_components/newsletter/HubspotForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
data.append('recaptchaToken', token);
}
const { form, enhance, constraints, errors, tainted } = superForm(
const { form, enhance, constraints, errors, tainted, capture, restore } = superForm(
superValidateSync(newsletterSchema),
{
id: formId,
Expand All @@ -35,6 +35,8 @@
}
}
);
export const snapshot = { capture, restore };
</script>

<div class="flex flex-col text-gray-500">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{ label: 'Yes', value: true }
];
const { form, enhance, constraints, errors, allErrors } = superForm(sForm, {
const { form, enhance, constraints, errors, allErrors, capture, restore } = superForm(sForm, {
dataType: 'json',
defaultValidator: 'clear',
syncFlashMessage: false,
Expand All @@ -30,6 +30,8 @@
}
});
// enable the svelte snapshot
export const snapshot = { capture, restore };
let relationshipSelect = $form.relationship;
let travelingWithYouSelect = yesNoDropDown.find((i) => i.value == $form.travelingWithYou);
Expand Down
5 changes: 4 additions & 1 deletion src/routes/(admin my)/my/profiles/primary/profileForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { Shell, DisabledShell } from '$elements/buttons';
const { form, enhance, constraints, errors, allErrors } = superForm(sForm, {
const { form, enhance, constraints, errors, allErrors, capture, restore } = superForm(sForm, {
dataType: 'json',
defaultValidator: 'clear',
taintedMessage:
Expand All @@ -26,6 +26,9 @@
}
}
});
// enable the svelte snapshot
export const snapshot = { capture, restore };
</script>

<form use:enhance method="POST">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
const flash = getFlash(page);
const { isEmpty } = lodash;
const { form, enhance, constraints, errors, allErrors } = superForm(sForm, {
const { form, enhance, constraints, errors, allErrors, capture, restore } = superForm(sForm, {
dataType: 'json',
validators: publicProfileSchema,
syncFlashMessage: false,
Expand All @@ -40,6 +40,7 @@
}
});
export const snapshot = { capture, restore };
let profileImageUploading;
let slugValues = {};
let socialLinkValues = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const { countryCode } = getContext('DROP_DOWN_KEY_VALUE_PAIRS');
const { form, enhance, constraints, errors, allErrors } = superForm(sForm, {
const { form, enhance, constraints, errors, allErrors, capture, restore } = superForm(sForm, {
dataType: 'json',
validators: sharedProfileFormSchema,
syncFlashMessage: false,
Expand All @@ -32,6 +32,7 @@
}
});
export const snapshot = { capture, restore };
let countryCodeSelect = countryCode?.options?.find(({ value }) => value === $form.country);
let formattedPhoneNumber = '';
function formatPhoneNumber(event) {
Expand Down

1 comment on commit 7457360

@vercel
Copy link

@vercel vercel bot commented on 7457360 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.