mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-06-26 12:41:27 +02:00
Small fixes
This commit is contained in:
parent
eb03092286
commit
a46bede230
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a
|
<a
|
||||||
v-on:click="toggleTheme()"
|
@click="toggleTheme()"
|
||||||
aria-label="Toggle dark mode"
|
aria-label="Toggle dark mode"
|
||||||
class="navbar-item is-inline-block-mobile"
|
class="navbar-item is-inline-block-mobile"
|
||||||
>
|
>
|
||||||
|
@ -47,7 +47,6 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.item.url) {
|
if (this.item.url) {
|
||||||
let fetchedMessage = await this.downloadMessage(this.item.url);
|
let fetchedMessage = await this.downloadMessage(this.item.url);
|
||||||
console.log("done");
|
|
||||||
if (this.item.mapping) {
|
if (this.item.mapping) {
|
||||||
fetchedMessage = this.mapRemoteMessage(fetchedMessage);
|
fetchedMessage = this.mapRemoteMessage(fetchedMessage);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
|
<a
|
||||||
|
@click.prevent="toggleSetting()"
|
||||||
|
class="navbar-item is-inline-block-mobile"
|
||||||
|
>
|
||||||
<span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span>
|
<span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</a>
|
</a>
|
||||||
|
@ -55,9 +55,9 @@ export default {
|
|||||||
if (!this.temp) return "";
|
if (!this.temp) return "";
|
||||||
|
|
||||||
let unit = "K";
|
let unit = "K";
|
||||||
if (this.item.type === "metric") {
|
if (this.item.units === "metric") {
|
||||||
unit = "°C";
|
unit = "°C";
|
||||||
} else if (this.item.type === "imperial") {
|
} else if (this.item.units === "imperial") {
|
||||||
unit = "°F";
|
unit = "°F";
|
||||||
}
|
}
|
||||||
return `${this.temp} ${unit}`;
|
return `${this.temp} ${unit}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user