mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-25 16:19:20 -04:00
Some minor updates
This commit is contained in:
1 parent
3c02ff9cf7
commit
49652f105e
2 files changed
+5
-1
No files matched your search
@@ -67,7 +67,7 @@ export function _buildRequestConfig (renderedRequest, patch = {}) {
|
||||
}
|
||||
}
|
||||
config.formData = formData;
|
||||
} else if (renderedRequest.body.mimeType === CONTENT_TYPE_FILE) {
|
||||
} else if (renderedRequest.body.fileName) {
|
||||
config.body = fs.readFileSync(renderedRequest.body.fileName);
|
||||
} else {
|
||||
config.body = renderedRequest.body.text || '';
|
||||
|
||||
@@ -36,6 +36,10 @@ class Modal extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
isShown () {
|
||||
return this.state.open;
|
||||
}
|
||||
|
||||
show () {
|
||||
this.setState({open: true, zIndex: globalZIndex++});
|
||||
|
||||
|
||||
Reference in new issue
Block a user