Some minor updates

This commit is contained in:
Gregory Schier 2016-11-23 15:57:34 -08:00
parent 3c02ff9cf7
commit 49652f105e
2 changed files with 5 additions and 1 deletions

View File

@ -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 || '';

View File

@ -36,6 +36,10 @@ class Modal extends Component {
}
}
isShown () {
return this.state.open;
}
show () {
this.setState({open: true, zIndex: globalZIndex++});