aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/Service.vue
diff options
context:
space:
mode:
authorRobin Schneider <45321827+robinschneider@users.noreply.github.com>2021-10-07 00:15:26 +0200
committerGitHub <noreply@github.com>2021-10-07 00:15:26 +0200
commit270e522e0ee2bb9bef795251796abbfc74efbef3 (patch)
treec8a22126b6393b48b6c3bd0365befd6fd695faaf /src/components/Service.vue
parent584f2b4b32e69865d9561f1537142791710f676d (diff)
parent220c60cba04e86e782e9610aa8ef0d77e221072c (diff)
downloadhomer-270e522e0ee2bb9bef795251796abbfc74efbef3.tar.gz
homer-270e522e0ee2bb9bef795251796abbfc74efbef3.tar.zst
homer-270e522e0ee2bb9bef795251796abbfc74efbef3.zip
Merge branch 'bastienwirtz:main' into hotkey
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`);