fix: wire response + init error handling

This commit is contained in:
liyasthomas
2021-07-15 09:40:45 +05:30
parent 86c9e09782
commit 3ef8e677c7
16 changed files with 283 additions and 152 deletions

View File

@@ -204,13 +204,13 @@ export default {
) {
this.importFromPostman(importFileObj)
} else {
this.importFromPostwoman(importFileObj)
this.importFromHoppscotch(importFileObj)
}
}
reader.readAsText(this.$refs.inputChooseFileToImportFrom.files[0])
this.$refs.inputChooseFileToImportFrom.value = ""
},
importFromPostwoman(environments) {
importFromHoppscotch(environments) {
appendEnvironments(environments)
this.fileImported()
},
@@ -220,7 +220,7 @@ export default {
environment.variables.push({ key, value })
)
const environments = [environment]
this.importFromPostwoman(environments)
this.importFromHoppscotch(environments)
},
exportJSON() {
let text = this.environmentJson