Merge branch 'pr346' into dev
This commit is contained in:
commit
a4bfd82824
@ -100,7 +100,7 @@
|
|||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" @click="onCloseModal(modal)"
|
<button type="button" class="btn btn-secondary" @click="onCloseModal(modal)"
|
||||||
data-bs-dismiss="modal">Cancel</button>
|
data-bs-dismiss="modal">Cancel</button>
|
||||||
<button type="button" class="btn btn-primary" @click="onEditSubmit()">Save
|
<button type="button" class="btn btn-primary" @click="onEditSubmit">Save
|
||||||
changes</button>
|
changes</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -140,17 +140,17 @@ import BootstrapAlert from "@/components/BootstrapAlert.vue";
|
|||||||
import { handleResponse, authHeader } from '@/utils/authentication';
|
import { handleResponse, authHeader } from '@/utils/authentication';
|
||||||
|
|
||||||
declare interface Inverter {
|
declare interface Inverter {
|
||||||
id: string,
|
id: string;
|
||||||
serial: number,
|
serial: number;
|
||||||
name: string,
|
name: string;
|
||||||
type: string,
|
type: string;
|
||||||
max_power: number[]
|
max_power: number[];
|
||||||
}
|
}
|
||||||
|
|
||||||
declare interface AlertResponse {
|
declare interface AlertResponse {
|
||||||
message: string,
|
message: string;
|
||||||
type: string,
|
type: string;
|
||||||
show: boolean
|
show: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@ -195,7 +195,7 @@ export default defineComponent({
|
|||||||
this.dataLoading = false;
|
this.dataLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
callInverterApiEndpoint: function (endpoint: string, jsonData: string) {
|
callInverterApiEndpoint(endpoint: string, jsonData: string) {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("data", jsonData);
|
formData.append("data", jsonData);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user