diff --git a/src/components/profiles-modals/ImportProfileModal.vue b/src/components/profiles-modals/ImportProfileModal.vue index 2ce6813da..1dedda264 100644 --- a/src/components/profiles-modals/ImportProfileModal.vue +++ b/src/components/profiles-modals/ImportProfileModal.vue @@ -109,7 +109,7 @@ export default class ImportProfileModal extends mixins(ProfilesMixin) { // User selects importing from file from the UI. importProfileFromFile() { this.activeStep = 'IMPORT_FILE'; - setImmediate(() => { + process.nextTick(() => { InteractionProvider.instance.selectFile({ title: 'Import Profile', filters: [{ @@ -122,7 +122,7 @@ export default class ImportProfileModal extends mixins(ProfilesMixin) { this.closeModal(); } this.importProfileHandler(value); - }) + }); }); } @@ -280,6 +280,7 @@ export default class ImportProfileModal extends mixins(ProfilesMixin) { if (installResult instanceof R2Error) { this.$store.commit('error/handleError', installResult); keepIterating = false; + this.closeModal(); return; } for (const imported of modList) { @@ -357,6 +358,15 @@ export default class ImportProfileModal extends mixins(ProfilesMixin) { + + + + + - - - - - - +