20 lines
560 B
Vue
20 lines
560 B
Vue
<script setup>
|
|
import {onMounted} from "vue";
|
|
import AircraftsList from "components/aircrafts/AircraftsList.vue";
|
|
import AircraftsListSkeleton from "components/aircrafts/AircraftsListSkeleton.vue";
|
|
import {aircrafts, fetchAircrafts, loading} from "src/composables/objects/aircraft";
|
|
import FAB from "components/FAB.vue";
|
|
|
|
onMounted(() => {
|
|
fetchAircrafts();
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<AircraftsListSkeleton v-if="loading" />
|
|
|
|
<AircraftsList class="q-my-lg" :items="aircrafts" v-else />
|
|
|
|
<FAB mode="add" :router-link="{name: 'addAircraft'}"/>
|
|
</template>
|