From 49bb8f3177f9abe41e5f5ff121a380122903e0f9 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 24 Feb 2026 13:23:57 +0000 Subject: [PATCH] Bug 14962: (QA follow-up) Fix silent failures and dead code in DisplaysResource Two issues in DisplaysResource.vue: 1. The error handlers for create() and update() in onFormSave were empty, so API failures (422, 500, etc.) produced no feedback to the user. Use the already-injected setError to show an error message. 2. An empty onBeforeMount(() => {}) lifecycle hook with its corresponding import was left over from development. Remove the dead code. Sponsored-by: ByWater Solutions Signed-of-by: Martin Renvoize --- .../components/Display/DisplaysResource.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Display/DisplaysResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Display/DisplaysResource.vue index 245e3e3144c..03d984d2d32 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Display/DisplaysResource.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Display/DisplaysResource.vue @@ -5,7 +5,7 @@ >