Close import modal after successfully importing a workflow
This commit is contained in:
@@ -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')))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user