From 1cd2b7fbe616aac94cd7b27a403a1d6a546b688c Mon Sep 17 00:00:00 2001 From: Pedro Amorim 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 c2b9a1c577..6de6a968b3 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