diff options
-rw-r--r-- | src/components/DarkMode.vue | 2 | ||||
-rw-r--r-- | src/components/Message.vue | 1 | ||||
-rw-r--r-- | src/components/SettingToggle.vue | 5 | ||||
-rw-r--r-- | src/components/services/OpenWeather.vue | 4 |
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}`; |