]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/Service.vue
Avoid hidding all info when copy pasting the exemple config
[github/bastienwirtz/homer.git] / src / components / Service.vue
index 39a9ac41e0df81855e4970f012d775eb2b09a398..ac378ecf7655c14833c7f4565435587c828fbef2 100644 (file)
@@ -1,14 +1,16 @@
 <template>
-  <component v-bind:is="component" :item="item"></component>
+  <component :is="component" :item="item" :proxy="proxy"></component>
 </template>
 
 <script>
+import { defineAsyncComponent } from "vue";
 import Generic from "./services/Generic.vue";
 
 export default {
   name: "Service",
   props: {
     item: Object,
+    proxy: Object,
   },
   computed: {
     component() {
@@ -16,7 +18,7 @@ export default {
       if (type === "Generic") {
         return Generic;
       }
-      return () => import(`./services/${type}.vue`);
+      return defineAsyncComponent(() => import(`./services/${type}.vue`));
     },
   },
 };