Small fixes

This commit is contained in:
Bastien Wirtz 2022-07-12 22:26:45 +02:00
parent eb03092286
commit a46bede230
4 changed files with 7 additions and 5 deletions

View File

@ -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"
> >

View File

@ -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);
} }

View File

@ -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>

View File

@ -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}`;