aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-07-12 22:26:45 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-07-12 22:26:45 +0200
commita46bede230afd80b3fbf562f4d5d7491155e3835 (patch)
tree3cc8a0e12b76c0ef906bce5fc8adcccc640d68aa /src/components
parenteb030922866f1e753162d99ea6b25a4f4e941b05 (diff)
downloadhomer-a46bede230afd80b3fbf562f4d5d7491155e3835.tar.gz
homer-a46bede230afd80b3fbf562f4d5d7491155e3835.tar.zst
homer-a46bede230afd80b3fbf562f4d5d7491155e3835.zip
Small fixes
Diffstat (limited to 'src/components')
-rw-r--r--src/components/DarkMode.vue2
-rw-r--r--src/components/Message.vue1
-rw-r--r--src/components/SettingToggle.vue5
-rw-r--r--src/components/services/OpenWeather.vue4
4 files changed, 7 insertions, 5 deletions
diff --git a/src/components/DarkMode.vue b/src/components/DarkMode.vue
index 677238a..4318c22 100644
--- a/src/components/DarkMode.vue
+++ b/src/components/DarkMode.vue
@@ -1,6 +1,6 @@
1<template> 1<template>
2 <a 2 <a
3 v-on:click="toggleTheme()" 3 @click="toggleTheme()"
4 aria-label="Toggle dark mode" 4 aria-label="Toggle dark mode"
5 class="navbar-item is-inline-block-mobile" 5 class="navbar-item is-inline-block-mobile"
6 > 6 >
diff --git a/src/components/Message.vue b/src/components/Message.vue
index 00ce158..2b338ef 100644
--- a/src/components/Message.vue
+++ b/src/components/Message.vue
@@ -47,7 +47,6 @@ export default {
47 } 47 }
48 if (this.item.url) { 48 if (this.item.url) {
49 let fetchedMessage = await this.downloadMessage(this.item.url); 49 let fetchedMessage = await this.downloadMessage(this.item.url);
50 console.log("done");
51 if (this.item.mapping) { 50 if (this.item.mapping) {
52 fetchedMessage = this.mapRemoteMessage(fetchedMessage); 51 fetchedMessage = this.mapRemoteMessage(fetchedMessage);
53 } 52 }
diff --git a/src/components/SettingToggle.vue b/src/components/SettingToggle.vue
index 6c8a10f..efa7caa 100644
--- a/src/components/SettingToggle.vue
+++ b/src/components/SettingToggle.vue
@@ -1,5 +1,8 @@
1<template> 1<template>
2 <a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile"> 2 <a
3 @click.prevent="toggleSetting()"
4 class="navbar-item is-inline-block-mobile"
5 >
3 <span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span> 6 <span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span>
4 <slot></slot> 7 <slot></slot>
5 </a> 8 </a>
diff --git a/src/components/services/OpenWeather.vue b/src/components/services/OpenWeather.vue
index 756abf7..ba0be96 100644
--- a/src/components/services/OpenWeather.vue
+++ b/src/components/services/OpenWeather.vue
@@ -55,9 +55,9 @@ export default {
55 if (!this.temp) return ""; 55 if (!this.temp) return "";
56 56
57 let unit = "K"; 57 let unit = "K";
58 if (this.item.type === "metric") { 58 if (this.item.units === "metric") {
59 unit = "°C"; 59 unit = "°C";
60 } else if (this.item.type === "imperial") { 60 } else if (this.item.units === "imperial") {
61 unit = "°F"; 61 unit = "°F";
62 } 62 }
63 return `${this.temp} ${unit}`; 63 return `${this.temp} ${unit}`;