You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,6 +44,10 @@ class ComposerNewRequest extends Component {
35
44
returnvalidationMessage||true;
36
45
}
37
46
47
+
handleSSEPayload(e){
48
+
this.props.setNewRequestSSE(e.target.checked);
49
+
}
50
+
38
51
addNewRequest(){
39
52
constvalidated=this.requestValidationCheck();
40
53
@@ -61,6 +74,8 @@ class ComposerNewRequest extends Component {
61
74
lethistoryBodyVariables;
62
75
if(document.querySelector('#gqlVariableEntryTextArea')){historyBodyVariables=document.querySelector('#gqlVariableEntryTextArea').value}//grabs the input value in case tab was last key pressed
63
76
elsehistoryBodyVariables='';
77
+
// console.log('in add new request, this.props.newRequestSSE: ', this.props.newRequestSSE)
78
+
64
79
reqRes={
65
80
66
81
id: uuid(),
@@ -83,7 +98,8 @@ class ComposerNewRequest extends Component {
83
98
body: historyBodyContent,
84
99
bodyType: this.props.newRequestBody.bodyType,
85
100
bodyVariables: historyBodyVariables,
86
-
rawType: this.props.newRequestBody.rawType
101
+
rawType: this.props.newRequestBody.rawType,
102
+
isSSE: this.props.newRequestSSE.isSSE,
87
103
},
88
104
response: {
89
105
headers: null,
@@ -199,7 +215,8 @@ class ComposerNewRequest extends Component {
199
215
protocol: '',
200
216
url: '',
201
217
graphQL: false
202
-
})
218
+
});
219
+
this.props.setNewRequestSSE(false);
203
220
}
204
221
else{
205
222
this.props.setComposerWarningMessage(validated);
@@ -269,6 +286,14 @@ class ComposerNewRequest extends Component {
269
286
/>
270
287
}
271
288
289
+
{/* SSE CHeckbox, update newRequestSSE in store */}
0 commit comments