Compare commits

...

2 Commits

Author SHA1 Message Date
Roman Krček
48cfe901a0 Fix terminology on the final page 2025-06-28 00:52:14 +02:00
Roman Krček
e23955f326 Remove leftover debugging code 2025-06-28 00:52:01 +02:00
2 changed files with 9 additions and 17 deletions

View File

@@ -32,20 +32,12 @@
let step: number = $state(0);
// let stepConditions = $derived([
// authorized,
// !!new_event?.name,
// !!participants?.length,
// !!subject && !!body
// ]);
// for debugging purpouses
let stepConditions = [
true,
true,
true,
true
];
let stepConditions = $derived([
authorized,
!!event?.name,
!!participants?.length,
!!email.subject
]);
function nextStep() {
if (step < steps.length - 1) step += 1;

View File

@@ -155,15 +155,15 @@
<!-- Creating Database Entries -->
<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}
<span class="text-black-600">Waiting...</span>
{:else if participants_status === StepStatus.Loading}
<span class="text-black-600">Creating entries...</span>
{: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}
<span class="text-red-600">Failed to create database entries.</span>
<span class="text-red-600">Failed to create QR codes.</span>
{/if}
</div>