Merge pull request 'Fix build issues' (#12) from development into main
Reviewed-on: #12
This commit is contained in:
@@ -31,7 +31,8 @@ onMount(async () => {
|
|||||||
|
|
||||||
const connect = () => goto('/private/api/gmail?action=auth');
|
const connect = () => goto('/private/api/gmail?action=auth');
|
||||||
|
|
||||||
async function sendTestEmail() {
|
async function sendTestEmail(event: Event) {
|
||||||
|
event.preventDefault();
|
||||||
error = '';
|
error = '';
|
||||||
success = '';
|
success = '';
|
||||||
loading = true;
|
loading = true;
|
||||||
@@ -70,8 +71,7 @@ async function sendTestEmail() {
|
|||||||
Connect Google
|
Connect Google
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
<form onsubmit={sendTestEmail} class="space-y-4">
|
||||||
<form on:submit|preventDefault={sendTestEmail} class="space-y-4">
|
|
||||||
<label class="block">
|
<label class="block">
|
||||||
<span class="text-gray-700">To</span>
|
<span class="text-gray-700">To</span>
|
||||||
<input type="email" class="mt-1 block w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-200" bind:value={to} required />
|
<input type="email" class="mt-1 block w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-200" bind:value={to} required />
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if showForm}
|
{#if showForm}
|
||||||
<form on:submit={handleSubmit} class="flex flex-col space-y-4 bg-white p-8 rounded border border-gray-300 w-full shadow-none">
|
<form onsubmit={handleSubmit} class="flex flex-col space-y-4 bg-white p-8 rounded border border-gray-300 w-full shadow-none">
|
||||||
<h2 class="text-2xl font-semibold text-center mb-4">Craft Email</h2>
|
<h2 class="text-2xl font-semibold text-center mb-4">Craft Email</h2>
|
||||||
<label class="flex flex-col text-gray-700">
|
<label class="flex flex-col text-gray-700">
|
||||||
Subject
|
Subject
|
||||||
|
|||||||
Reference in New Issue
Block a user