aboutsummaryrefslogtreecommitdiffstats
path: root/pages/index.vue
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2025-01-24 01:53:42 +0000
committerLeonardo Bishop <me@leonardobishop.com>2025-01-24 01:53:42 +0000
commited3faf85e6a6e8083128ec68894533738c762b04 (patch)
treee8bb6ddc4b0d470c024667ab3ccacd3e2f85cf50 /pages/index.vue
parent0248517c6845a6c755d40c89d3d769ce7d60bd03 (diff)
Add /live
Diffstat (limited to 'pages/index.vue')
-rw-r--r--pages/index.vue18
1 files changed, 17 insertions, 1 deletions
diff --git a/pages/index.vue b/pages/index.vue
index 941a378..c455678 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,6 +1,22 @@
<script setup lang="ts">
-navigateTo('/events');
+const scheduleStore = useScheduleStore();
+
+const destination = ref()
+
+if (scheduleStore.isConferenceOngoing()) {
+ destination.value = "/live";
+ navigateTo('/live');
+} else {
+ destination.value = "/events";
+ navigateTo('/events');
+}
</script>
<template>
+ <Panel kind="success">
+ <span class="text-icon">
+ <Spinner />
+ <span>Successfully logged in. Navigating to {{ destination }}...</span>
+ </span>
+ </Panel>
</template>