View | Details | Raw Unified | Return to bug 37301
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue (-3 / +8 lines)
Lines 4-12 import { inject } from "vue" Link Here
4
export default {
4
export default {
5
    setup(props) {
5
    setup(props) {
6
        //global setup for all resource (list and show for now, but maybe others?) components here
6
        //global setup for all resource (list and show for now, but maybe others?) components here
7
        const { setConfirmationDialog, setMessage, setError } =
7
        const { setConfirmationDialog, setMessage, setError, setWarning } =
8
            inject("mainStore")
8
            inject("mainStore")
9
        return { ...props, setConfirmationDialog, setMessage, setError }
9
        return {
10
            ...props,
11
            setConfirmationDialog,
12
            setMessage,
13
            setError,
14
            setWarning,
15
        }
10
    },
16
    },
11
    methods: {
17
    methods: {
12
        /**
18
        /**
13
- 

Return to bug 37301