From d569198e5d670a1e50d1fdf6cdbc59fbd1825a08 Mon Sep 17 00:00:00 2001 From: Tiberiu Ichim Date: Sun, 22 Feb 2026 09:15:56 +0200 Subject: [PATCH] Fix applyMatch not closing modal --- client/components/modals/item/tabs/Match.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/components/modals/item/tabs/Match.vue b/client/components/modals/item/tabs/Match.vue index 24d107126..ffbd124cb 100644 --- a/client/components/modals/item/tabs/Match.vue +++ b/client/components/modals/item/tabs/Match.vue @@ -567,12 +567,11 @@ export default { }, async applyMatch(match) { this.parseMatchData(match) - console.log('Apply Match', match) this.selectedMatch = match for (const key in this.selectedMatchUsage) { this.selectedMatchUsage[key] = true } - await this.submitMatchUpdate() + await this.submitMatchUpdate(true) }, buildMatchUpdatePayload() { var updatePayload = {} @@ -626,7 +625,7 @@ export default { return updatePayload }, - async submitMatchUpdate() { + async submitMatchUpdate(closeOnSuccess = false) { var updatePayload = this.buildMatchUpdatePayload() if (!Object.keys(updatePayload).length) { return @@ -655,7 +654,11 @@ export default { this.$toast.info(this.$strings.ToastNoUpdatesNecessary) } this.clearSelectedMatch() - this.$emit('selectTab', 'details') + if (closeOnSuccess) { + this.$emit('close') + } else { + this.$emit('selectTab', 'details') + } } else { this.$toast.error(this.$strings.ToastFailedToUpdate) }