Compare commits
2 Commits
ae9cedf51c
...
48cfe901a0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48cfe901a0 | ||
|
|
e23955f326 |
@@ -32,20 +32,12 @@
|
|||||||
|
|
||||||
let step: number = $state(0);
|
let step: number = $state(0);
|
||||||
|
|
||||||
// let stepConditions = $derived([
|
let stepConditions = $derived([
|
||||||
// authorized,
|
authorized,
|
||||||
// !!new_event?.name,
|
!!event?.name,
|
||||||
// !!participants?.length,
|
!!participants?.length,
|
||||||
// !!subject && !!body
|
!!email.subject
|
||||||
// ]);
|
]);
|
||||||
|
|
||||||
// for debugging purpouses
|
|
||||||
let stepConditions = [
|
|
||||||
true,
|
|
||||||
true,
|
|
||||||
true,
|
|
||||||
true
|
|
||||||
];
|
|
||||||
|
|
||||||
function nextStep() {
|
function nextStep() {
|
||||||
if (step < steps.length - 1) step += 1;
|
if (step < steps.length - 1) step += 1;
|
||||||
|
|||||||
@@ -155,15 +155,15 @@
|
|||||||
|
|
||||||
<!-- Creating Database Entries -->
|
<!-- Creating Database Entries -->
|
||||||
<div class="mb-4 rounded border border-gray-300 bg-white p-4">
|
<div class="mb-4 rounded border border-gray-300 bg-white p-4">
|
||||||
<h2 class="mb-2 text-xl font-bold">Creating database entries</h2>
|
<h2 class="mb-2 text-xl font-bold">Creating QR codes for participants</h2>
|
||||||
{#if participants_status === StepStatus.Waiting}
|
{#if participants_status === StepStatus.Waiting}
|
||||||
<span class="text-black-600">Waiting...</span>
|
<span class="text-black-600">Waiting...</span>
|
||||||
{:else if participants_status === StepStatus.Loading}
|
{:else if participants_status === StepStatus.Loading}
|
||||||
<span class="text-black-600">Creating entries...</span>
|
<span class="text-black-600">Creating entries...</span>
|
||||||
{:else if participants_status === StepStatus.Success}
|
{:else if participants_status === StepStatus.Success}
|
||||||
<span class="text-green-600">Database entries created successfully.</span>
|
<span class="text-green-600">QR codes created successfully.</span>
|
||||||
{:else if participants_status === StepStatus.Failure}
|
{:else if participants_status === StepStatus.Failure}
|
||||||
<span class="text-red-600">Failed to create database entries.</span>
|
<span class="text-red-600">Failed to create QR codes.</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user