From ddd7f7755131088205d6f0669766932574fad845 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Mon, 10 Nov 2025 16:43:13 +0300 Subject: [PATCH] [FIX] Show loading screen while waiting for modal text content. --- ui/app/components/GetInfo.vue | 3 +-- ui/app/components/ModalText.vue | 21 +++++++++++++-------- ui/app/layouts/default.vue | 11 ++++++++--- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/ui/app/components/GetInfo.vue b/ui/app/components/GetInfo.vue index 67b9006f..9269f982 100644 --- a/ui/app/components/GetInfo.vue +++ b/ui/app/components/GetInfo.vue @@ -16,7 +16,7 @@ const props = defineProps<{ code_classes?: string }>() -const isLoading = ref(false) +const isLoading = ref(true) const data = ref({}) onMounted(async (): Promise => { @@ -35,7 +35,6 @@ onMounted(async (): Promise => { } try { - isLoading.value = true const response = await request(url) const body = await response.text() diff --git a/ui/app/components/ModalText.vue b/ui/app/components/ModalText.vue index 008981da..530095ec 100644 --- a/ui/app/components/ModalText.vue +++ b/ui/app/components/ModalText.vue @@ -31,14 +31,19 @@ code {