webapp: Fixed lint errors

This commit is contained in:
Thomas Basler 2023-01-17 20:40:54 +01:00
parent 55b778228e
commit 547ff48047
2 changed files with 3 additions and 5 deletions

View File

@ -115,7 +115,7 @@ import BasePage from '@/components/BasePage.vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue";
import CardElement from '@/components/CardElement.vue';
import type { ConfigFileList } from '@/types/Config';
import { authHeader, handleResponse, isLoggedIn } from '@/utils/authentication';
import { authHeader, handleResponse } from '@/utils/authentication';
import * as bootstrap from 'bootstrap';
import {
BIconArrowLeft,
@ -207,7 +207,7 @@ export default defineComponent({
a.remove();
});
},
uploadConfig(event: Event | null) {
uploadConfig() {
this.uploading = true;
const formData = new FormData();
const target = this.$refs.file as HTMLInputElement; // event.target as HTMLInputElement;

View File

@ -26,7 +26,7 @@
<div class="col-sm-10">
<select class="form-select" id="inputPinProfile"
v-model="deviceConfigList.curPin.name">
<option v-for="device in pinMappingList" :value="device.name">
<option v-for="device in pinMappingList" :value="device.name" :key="device.name">
{{ device.name }}
</option>
</select>
@ -54,7 +54,6 @@
<script lang="ts">
import BasePage from '@/components/BasePage.vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue";
import InputElement from '@/components/InputElement.vue';
import PinInfo from '@/components/PinInfo.vue';
import type { DeviceConfig } from "@/types/DeviceConfig";
import type { PinMapping, Device } from "@/types/PinMapping";
@ -65,7 +64,6 @@ export default defineComponent({
components: {
BasePage,
BootstrapAlert,
InputElement,
PinInfo,
},
data() {