From 5adf101d837267135ca334fc18d93e6ec178089e Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sat, 15 Dec 2018 20:34:42 -0500 Subject: [PATCH] Don't send requests twice (Fixes #1307) --- .../app/ui/components/request-url-bar.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/insomnia-app/app/ui/components/request-url-bar.js b/packages/insomnia-app/app/ui/components/request-url-bar.js index 47e1bceb0..10b61baa5 100644 --- a/packages/insomnia-app/app/ui/components/request-url-bar.js +++ b/packages/insomnia-app/app/ui/components/request-url-bar.js @@ -37,7 +37,7 @@ type Props = { type State = { currentInterval: number | null, currentTimeout: number | null, - downloadPath: string | null + downloadPath: string | null, }; @autobind @@ -284,23 +284,23 @@ class RequestUrlBar extends React.PureComponent { className="urlbar__send-btn" onContextMenu={this._handleMetaClickSend} onClick={this._handleClickSend} - type="submit"> + type="button"> {downloadPath ? 'Download' : 'Send'} Basic - - Send Now - + + Send Now + - Generate Client Code + Generate Client Code Advanced - Send After Delay + Send After Delay - Repeat on Interval + Repeat on Interval {downloadPath ? ( { addIcon buttonClass={PromptButton} onClick={this._handleClearDownloadLocation}> - Stop Auto-Download + Stop Auto-Download ) : ( - Download After Send + Download After Send )} - Send And Download + Send And Download ); @@ -345,7 +345,7 @@ class RequestUrlBar extends React.PureComponent { ref={this._setMethodDropdownRef} onChange={this._handleMethodChange} method={method}> - {method} + {method}