small fixes

This commit is contained in:
Nityananda Gohain 2019-09-06 16:20:28 +05:30
parent afd466b516
commit 46ee372c0f

View File

@ -4,7 +4,7 @@
<button id="show-modal" @click="showModal = true">IMPORT</button>
<import-modal v-if="showModal" @close="showModal = false">
<div slot="header">
<h2>Import</h2>
<h2>IMPORT CURL</h2>
</div>
<div slot="body">
<textarea id="import-text" style="height:20rem">
@ -626,7 +626,6 @@
console.log("handleimport");
let textarea = document.getElementById("import-text")
let text = textarea.value;
console.log(text);
try {
let parsedCurl = parseCurlCommand(text);
console.log(parsedCurl);
@ -644,7 +643,6 @@
}
this.method = parsedCurl.method.toUpperCase();
} catch (error) {
console.log(error)
this.showModal = false;
}
}