From 9b8e0c40205e5924f568b56592da88ea0575e155 Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Thu, 8 Aug 2024 11:02:42 +0200 Subject: [PATCH] Improve error state --- src/App.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App.vue b/src/App.vue index d2f8160..d6df92f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -111,6 +111,10 @@ watch(() => state.ppn, async (ppn) => { } catch (error) { console.error(error) state.error = true + state.loading = false + console.timeEnd("Load title data") + console.timeEnd(`Load PPN ${ppn}`) + return } console.timeEnd("Load title data") @@ -359,6 +363,9 @@ const examples = [ +

+ Fehler beim Laden von Titeldaten zu {{ state.ppn }}. +

Keine Titeldaten zu {{ state.ppn }} gefunden.