Skip to content

Commit 04eb8d1

Browse files
authored
feat(keep-alive): keep-alive (#299)
* feat(ui): keep-alive(forever) true by default
1 parent cd3f8a8 commit 04eb8d1

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

ui/src/features/components/TestForm/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class TestForm extends React.Component {
215215
};
216216

217217
initStep() {
218-
return {id: uuid(), method: 'POST', headers: [{}], captures: [{}], url: ''}
218+
return {id: uuid(), method: 'POST', headers: [{}], captures: [{}], url: '', forever: true}
219219
}
220220

221221
onChooseScenario = (key) => {
@@ -258,10 +258,10 @@ export class TestForm extends React.Component {
258258
const {scenarios, currentScenarioIndex} = this.state;
259259
scenarios.splice(currentScenarioIndex, 1);
260260
let newCurrentScenarioIndex;
261-
if(currentScenarioIndex===0){
262-
newCurrentScenarioIndex=0;
263-
}else{
264-
newCurrentScenarioIndex =currentScenarioIndex-1;
261+
if (currentScenarioIndex === 0) {
262+
newCurrentScenarioIndex = 0;
263+
} else {
264+
newCurrentScenarioIndex = currentScenarioIndex - 1;
265265
}
266266
this.setState({scenarios, currentScenarioIndex: newCurrentScenarioIndex});
267267
};

ui/src/features/components/TestForm/requestOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default (props) => {
3131
</SideLabel>
3232
</div>
3333
<div style={{display: 'flex', flexDirection: 'row', alignItems: 'center'}}>
34-
<SideLabel label={'forever'}>
34+
<SideLabel label={'keep-alive'}>
3535
<UiSwitcher
3636
onChange={(value) => {
3737
onForeverToggleChanged(value)

ui/src/features/configurationColumn.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ export const getColumns = ({columnsNames, sortHeader = '', onSort, onReportView,
211211
</TableHeader>
212212
),
213213
accessor: data => statusFormatter(data.status),
214-
width: mediumSize,
215-
className: css['center-flex'],
214+
width: mediumSize
216215
},
217216
{
218217
id: 'arrival_rate',

0 commit comments

Comments
 (0)