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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue (-3 / +4 lines)
Lines 10-16 Link Here
10
    </div>
10
    </div>
11
    <div class="modal_centered" v-if="confirmation">
11
    <div class="modal_centered" v-if="confirmation">
12
        <div class="dialog alert confirmation">
12
        <div class="dialog alert confirmation">
13
            <h1 v-html="confirmation"></h1>
13
            <h1 v-html="confirmation.title"></h1>
14
            <p v-html="confirmation.message"></p>
14
            <button
15
            <button
15
                v-if="accept_callback"
16
                v-if="accept_callback"
16
                id="accept_modal"
17
                id="accept_modal"
Lines 18-28 Link Here
18
                @click="accept_callback"
19
                @click="accept_callback"
19
            >
20
            >
20
                <i class="fa fa-fw fa-check"></i>
21
                <i class="fa fa-fw fa-check"></i>
21
                {{ $__("Accept") }}
22
                <span v-html="confirmation.accept_label"></span>
22
            </button>
23
            </button>
23
            <button id="close_modal" class="deny" @click="removeMessages">
24
            <button id="close_modal" class="deny" @click="removeMessages">
24
                <i class="fa fa-fw fa-remove"></i>
25
                <i class="fa fa-fw fa-remove"></i>
25
                {{ $__("Close") }}
26
                <span v-html="confirmation.cancel_label"></span>
26
            </button>
27
            </button>
27
        </div>
28
        </div>
28
    </div>
29
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/main.js (-2 / +1 lines)
Lines 35-41 export const useMainStore = defineStore("main", { Link Here
35
            this._confirmation = null;
35
            this._confirmation = null;
36
            this.displayed_already = displayed; /* Is displayed on the current view */
36
            this.displayed_already = displayed; /* Is displayed on the current view */
37
        },
37
        },
38
        setConfirmation(confirmation, accept_callback, displayed = true){
38
        setConfirmationDialog(confirmation, accept_callback, displayed = true){
39
            if(accept_callback) {
39
            if(accept_callback) {
40
                this._accept_callback = async () => {
40
                this._accept_callback = async () => {
41
                    await accept_callback()
41
                    await accept_callback()
42
- 

Return to bug 32991