From 7a7d53f92e97f77298c0f023eecb332a0d56d66c Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 3 May 2022 19:33:00 -0500 Subject: [PATCH] Update:Close author modal on update --- client/components/modals/authors/EditModal.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/components/modals/authors/EditModal.vue b/client/components/modals/authors/EditModal.vue index 3d289ac5..36d9b726 100644 --- a/client/components/modals/authors/EditModal.vue +++ b/client/components/modals/authors/EditModal.vue @@ -112,8 +112,10 @@ export default { return null }) if (result) { - if (result.updated) this.$toast.success('Author updated') - else this.$toast.info('No updates were needed') + if (result.updated) { + this.$toast.success('Author updated') + this.show = false + } else this.$toast.info('No updates were needed') } this.processing = false },