aboutsummaryrefslogtreecommitdiffstats
path: root/web/pages/index.vue
blob: e662bc7d76aec9176b40ef6f4ca38bc817811957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<script setup lang="ts">
definePageMeta({
  middleware: ['logged-in', 'conference-selected']
})

const scheduleStore = useScheduleStore();

const destination = ref()

if (scheduleStore.isConferenceOngoing()) {
  destination.value = "/live";
  navigateTo('/live');
} else {
  destination.value = "/events";
  navigateTo('/events');
}
</script>

<template>
  <div v-if="scheduleStore.status === 'pending'" class="loading">
    <span class="loading-text">
      <Spinner color="var(--color-text-muted)" />Updating schedule...
    </span>
  </div>
  <Panel kind="success">
    <span class="text-icon">
      <Spinner />
      <span>Successfully logged in. Navigating to {{ destination }}...</span>
    </span>
  </Panel>
</template>