From 49652f105ea26d33f3bc877042f3975e3785de3f Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 23 Nov 2016 15:57:34 -0800 Subject: [PATCH] Some minor updates --- app/common/network.js | 2 +- app/ui/components/base/Modal.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/common/network.js b/app/common/network.js index 4fdda7e94..45d7164ec 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 cc83548d6..f674a1632 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++});