aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/Service.vue
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-10-06 22:55:09 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2021-10-06 22:55:09 +0200
commit2ca4faad9cb336ac8904bbc775fdcc2a12731b90 (patch)
tree76f26d0503c5f86e6240e3d84fa4e793cc4c44ed /src/components/Service.vue
parentc7dc6bfd0d73f803914092593d440d8b27e2c851 (diff)
downloadhomer-2ca4faad9cb336ac8904bbc775fdcc2a12731b90.tar.gz
homer-2ca4faad9cb336ac8904bbc775fdcc2a12731b90.tar.zst
homer-2ca4faad9cb336ac8904bbc775fdcc2a12731b90.zip
Extendable base service for easier development.
Diffstat (limited to 'src/components/Service.vue')
-rw-r--r--src/components/Service.vue5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/Service.vue b/src/components/Service.vue
index 8686759..39a9ac4 100644
--- a/src/components/Service.vue
+++ b/src/components/Service.vue
@@ -7,16 +7,13 @@ import Generic from "./services/Generic.vue";
7 7
8export default { 8export default {
9 name: "Service", 9 name: "Service",
10 components: {
11 Generic,
12 },
13 props: { 10 props: {
14 item: Object, 11 item: Object,
15 }, 12 },
16 computed: { 13 computed: {
17 component() { 14 component() {
18 const type = this.item.type || "Generic"; 15 const type = this.item.type || "Generic";
19 if (type == "Generic") { 16 if (type === "Generic") {
20 return Generic; 17 return Generic;
21 } 18 }
22 return () => import(`./services/${type}.vue`); 19 return () => import(`./services/${type}.vue`);