load jobTypes before used

This commit is contained in:
Tim Gröger 2023-04-28 20:45:30 +02:00
parent a88e3a0160
commit 144bc1d58e
1 changed files with 7 additions and 1 deletions

View File

@ -43,15 +43,21 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, ref } from 'vue'; import { computed, defineComponent, ref, onBeforeMount } from 'vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import AgendaView from '../components/overview/AgendaView.vue'; import AgendaView from '../components/overview/AgendaView.vue';
import ListView from '../components/overview/ListView.vue'; import ListView from '../components/overview/ListView.vue';
import { useEventStore } from '../store';
export default defineComponent({ export default defineComponent({
name: 'EventOverview', name: 'EventOverview',
components: { AgendaView, ListView }, components: { AgendaView, ListView },
setup() { setup() {
const store = useEventStore();
onBeforeMount(() => {
void store.getJobTypes();
});
const quasar = useQuasar(); const quasar = useQuasar();
const tabs = computed(() => [ const tabs = computed(() => [