summaryrefslogtreecommitdiff
path: root/pages/index.vue
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-18 14:24:32 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-18 14:24:32 +0200
commit5d74f6c7c09ceb4b68bd0265e6c641192080d994 (patch)
tree443445654ffbf427fb4f5353fe70756c9fb3a0e1 /pages/index.vue
parent683cd8be5d6cf42cce58eae4134459ee60658e8c (diff)
Add model loading component
Diffstat (limited to 'pages/index.vue')
-rw-r--r--pages/index.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/pages/index.vue b/pages/index.vue
index 75876fa..2c84032 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,13 +1,29 @@
<template lang="pug">
.mx-auto.max-w-7xl.py-6(class="sm:px-6 lg:px-8")
+ model-loading(v-if="isLoading")
+
</template>
<script>
+import ModelLoading from "@/components/ModelLoading.vue";
+
+import { mapGetters } from "vuex";
+
export default {
name: "IndexPage",
layout: "default",
head: {
title: "Verden - Social for 3D artists",
},
+ components: {
+ "model-loading": ModelLoading,
+ },
+ computed: {
+ ...mapGetters(["isLoading"]),
+ ...mapGetters("auth", ["isLogged"]),
+ },
+ created() {
+ this.$store.dispatch("models/getModels");
+ },
};
</script>