changed formatting/qoutes to better match the master (less changes)

This commit is contained in:
Michael Wilk 2022-11-14 14:52:41 +01:00
parent 7d203b50a3
commit 34218cdc4a

View File

@ -139,11 +139,6 @@ import * as bootstrap from 'bootstrap';
import BootstrapAlert from "@/components/BootstrapAlert.vue"; import BootstrapAlert from "@/components/BootstrapAlert.vue";
import { handleResponse, authHeader } from '@/utils/authentication'; import { handleResponse, authHeader } from '@/utils/authentication';
declare interface Channel {
name: string
max_power: number
}
declare interface Inverter { declare interface Inverter {
id: string, id: string,
serial: number, serial: number,
@ -204,8 +199,8 @@ export default defineComponent({
const formData = new FormData(); const formData = new FormData();
formData.append("data", jsonData); formData.append("data", jsonData);
fetch('/api/inverter/' + endpoint, { fetch("/api/inverter/" + endpoint, {
method: 'POST', method: "POST",
headers: authHeader(), headers: authHeader(),
body: formData, body: formData,
}) })