aboutsummaryrefslogtreecommitdiffstats
path: root/web/pages/index.vue
blob: c4556787f6ffc1e9aadc2d95e3a6ce506d7840bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script setup lang="ts">
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>