diff --git a/resources/js/components/diagnostics/ConfigurationsDiagnostics.vue b/resources/js/components/diagnostics/ConfigurationsDiagnostics.vue index 0a3d7ca1e09..a36dbf1883a 100644 --- a/resources/js/components/diagnostics/ConfigurationsDiagnostics.vue +++ b/resources/js/components/diagnostics/ConfigurationsDiagnostics.vue @@ -11,9 +11,14 @@ import DiagnosticsService from "@/services/diagnostics-service"; const configs = ref(undefined); +const emits = defineEmits<{ + loaded: [data: string[]]; +}>(); + function load() { DiagnosticsService.config().then((response) => { configs.value = response.data; + emits("loaded", response.data); }); } diff --git a/resources/js/components/diagnostics/ErrorsDiagnostics.vue b/resources/js/components/diagnostics/ErrorsDiagnostics.vue index 9e233012fc3..2bbbef57854 100644 --- a/resources/js/components/diagnostics/ErrorsDiagnostics.vue +++ b/resources/js/components/diagnostics/ErrorsDiagnostics.vue @@ -14,9 +14,14 @@ import DiagnosticsService from "@/services/diagnostics-service"; const errors = ref(undefined); +const emits = defineEmits<{ + loaded: [data: App.Http.Resources.Diagnostics.ErrorLine[]]; +}>(); + function load() { DiagnosticsService.errors().then((response) => { errors.value = response.data; + emits("loaded", response.data); }); } diff --git a/resources/js/components/diagnostics/InfoDiagnostics.vue b/resources/js/components/diagnostics/InfoDiagnostics.vue index 4e1e3a39914..aff0c620e14 100644 --- a/resources/js/components/diagnostics/InfoDiagnostics.vue +++ b/resources/js/components/diagnostics/InfoDiagnostics.vue @@ -10,10 +10,14 @@ import Panel from "primevue/panel"; import DiagnosticsService from "@/services/diagnostics-service"; const infos = ref(undefined); +const emits = defineEmits<{ + loaded: [data: string[]]; +}>(); function load() { DiagnosticsService.info().then((response) => { infos.value = response.data; + emits("loaded", response.data); }); } diff --git a/resources/js/views/Diagnostics.vue b/resources/js/views/Diagnostics.vue index 7653515f13b..2c3f4cdfdd6 100644 --- a/resources/js/views/Diagnostics.vue +++ b/resources/js/views/Diagnostics.vue @@ -2,23 +2,23 @@ - + - - + + - + diff --git a/resources/js/views/Error.vue b/resources/js/views/Error.vue index fb17546c72e..eb47a146c88 100644 --- a/resources/js/views/Error.vue +++ b/resources/js/views/Error.vue @@ -34,7 +34,7 @@