diff --git a/app/common/network.js b/app/common/network.js index 4fdda7e94b..45d7164ece 100644 --- a/app/common/network.js +++ b/app/common/network.js @@ -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 || ''; diff --git a/app/ui/components/base/Modal.js b/app/ui/components/base/Modal.js index cc83548d60..f674a16320 100644 --- a/app/ui/components/base/Modal.js +++ b/app/ui/components/base/Modal.js @@ -36,6 +36,10 @@ class Modal extends Component { } } + isShown () { + return this.state.open; + } + show () { this.setState({open: true, zIndex: globalZIndex++});