Close import modal after successfully importing a workflow

This commit is contained in:
Katrin Yordanova
2023-01-03 13:28:57 +02:00
parent 9f25111b1c
commit 9f6c2bc03f
3 changed files with 3 additions and 0 deletions
@@ -9,6 +9,7 @@
</b-button>
<b-modal
id="import"
v-model="show"
size="lg"
:title="$t('general:import.json')"
@@ -2497,6 +2497,7 @@ export default {
this.importProcessing = false
this.$root.$emit('change-detected')
this.$bvModal.hide('import')
this.toastSuccess(this.$t('notification:imported-workflow'))
} catch (e) {
this.toastErrorHandler(this.$t('notification:import-failed'))(e)
@@ -290,6 +290,7 @@ export default {
} else {
this.toastSuccess(this.$t('notification:import.imported-workflows'))
}
this.$bvModal.hide('import')
})
.catch(this.toastErrorHandler(this.$t('notification:import.failed-import')))