From bf154e44c52338f7b3fbfca8e9ec2f36497ada96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Wed, 21 Jun 2023 13:14:02 +0200 Subject: [PATCH] Hide alterations modal on load if no alterations exist --- .../src/components/Admin/Module/DalSchemaAlterations.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/web/compose/src/components/Admin/Module/DalSchemaAlterations.vue b/client/web/compose/src/components/Admin/Module/DalSchemaAlterations.vue index cc3d96c5b..f2e827e2c 100644 --- a/client/web/compose/src/components/Admin/Module/DalSchemaAlterations.vue +++ b/client/web/compose/src/components/Admin/Module/DalSchemaAlterations.vue @@ -289,6 +289,10 @@ export default { return this.$SystemAPI.dalSchemaAlterationList({ batchID }).then(({ set }) => { this.alterations = set + + if (!this.alteration.length) { + this.$emit('hide') + } }).catch(this.toastErrorHandler(this.$t('notification:module.schemaAlterations.load.error'))) .finally(() => { this.loading = false