@@ -, +, @@ closed --- .../intranet-tmpl/prog/js/vue/components/Dialog.vue | 9 +++++++-- koha-tmpl/intranet-tmpl/prog/js/vue/stores/main.js | 9 +++++---- 2 files changed, 12 insertions(+), 6 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue +++ a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue @@ -21,7 +21,11 @@ - @@ -52,7 +56,7 @@ export default { is_submitting, is_loading, } = storeToRefs(mainStore) - const { removeMessages } = mainStore + const { removeMessages, removeConfirmationMessages } = mainStore return { message, error, @@ -62,6 +66,7 @@ export default { is_submitting, is_loading, removeMessages, + removeConfirmationMessages, } }, } --- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/main.js +++ a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/main.js @@ -39,12 +39,9 @@ export const useMainStore = defineStore("main", { if(accept_callback) { this._accept_callback = async () => { await accept_callback() - this.removeMessages() + this.removeConfirmationMessages() } } - this._error = null; - this._warning = null; - this._message = null; this._confirmation = confirmation; this.displayed_already = displayed; /* Is displayed on the current view */ }, @@ -58,6 +55,10 @@ export const useMainStore = defineStore("main", { } this.displayed_already = true; }, + removeConfirmationMessages(){ + this._confirmation = null; + this._accept_callback = null; + }, submitting(){ this._is_submitting = true; }, --