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