From 8a3ef03dd5792e1397862aa73432e61c828be6b3 Mon Sep 17 00:00:00 2001
From: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Date: Thu, 17 Oct 2024 12:32:49 +0000
Subject: [PATCH] Bug 37301: Move setWarning to BaseResource

UsageStatisticsDataProvidersList needs it, and others in the future will as well
---
 .../prog/js/vue/components/BaseResource.vue            | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue
index c2b9a1c577b..6de6a968b32 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue
+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue
@@ -4,9 +4,15 @@ import { inject } from "vue"
 export default {
     setup(props) {
         //global setup for all resource (list and show for now, but maybe others?) components here
-        const { setConfirmationDialog, setMessage, setError } =
+        const { setConfirmationDialog, setMessage, setError, setWarning } =
             inject("mainStore")
-        return { ...props, setConfirmationDialog, setMessage, setError }
+        return {
+            ...props,
+            setConfirmationDialog,
+            setMessage,
+            setError,
+            setWarning,
+        }
     },
     methods: {
         /**
-- 
2.39.5