From 8257eb7aa26e4a5cd5fb12edad7bc445c2a84e41 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 19 Oct 2024 17:39:12 +0200 Subject: [PATCH] webapp: Use global AlertResponse interface --- webapp/src/views/InverterAdminView.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/webapp/src/views/InverterAdminView.vue b/webapp/src/views/InverterAdminView.vue index 548c8ff54..d07f630d3 100644 --- a/webapp/src/views/InverterAdminView.vue +++ b/webapp/src/views/InverterAdminView.vue @@ -349,6 +349,7 @@ import CardElement from '@/components/CardElement.vue'; import InputElement from '@/components/InputElement.vue'; import InputSerial from '@/components/InputSerial.vue'; import ModalDialog from '@/components/ModalDialog.vue'; +import type { AlertResponse } from '@/types/Alert'; import type { Inverter } from '@/types/InverterConfig'; import { authHeader, handleResponse } from '@/utils/authentication'; import * as bootstrap from 'bootstrap'; @@ -363,13 +364,6 @@ import { import Sortable from 'sortablejs'; import { defineComponent } from 'vue'; -declare interface AlertResponse { - message: string; - type: string; - code: number; - show: boolean; -} - export default defineComponent({ components: { BasePage,