webapp: Use global AlertResponse interface

This commit is contained in:
Thomas Basler 2024-10-19 17:39:12 +02:00
parent 1e857b79c1
commit 8257eb7aa2

View File

@ -349,6 +349,7 @@ import CardElement from '@/components/CardElement.vue';
import InputElement from '@/components/InputElement.vue'; import InputElement from '@/components/InputElement.vue';
import InputSerial from '@/components/InputSerial.vue'; import InputSerial from '@/components/InputSerial.vue';
import ModalDialog from '@/components/ModalDialog.vue'; import ModalDialog from '@/components/ModalDialog.vue';
import type { AlertResponse } from '@/types/Alert';
import type { Inverter } from '@/types/InverterConfig'; import type { Inverter } from '@/types/InverterConfig';
import { authHeader, handleResponse } from '@/utils/authentication'; import { authHeader, handleResponse } from '@/utils/authentication';
import * as bootstrap from 'bootstrap'; import * as bootstrap from 'bootstrap';
@ -363,13 +364,6 @@ import {
import Sortable from 'sortablejs'; import Sortable from 'sortablejs';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
declare interface AlertResponse {
message: string;
type: string;
code: number;
show: boolean;
}
export default defineComponent({ export default defineComponent({
components: { components: {
BasePage, BasePage,