update timeout per request for c2d message (#207)
This commit is contained in:
Родитель
d1e1d61ea7
Коммит
de4b758c3c
|
@ -68,7 +68,7 @@ exports[`directMethod matches snapshot 1`] = `
|
|||
max={300}
|
||||
min={0}
|
||||
onChange={[Function]}
|
||||
value={0}
|
||||
value={10}
|
||||
/>
|
||||
<Component
|
||||
tooltipText="directMethod.responseTimeoutTooltip"
|
||||
|
@ -78,9 +78,9 @@ exports[`directMethod matches snapshot 1`] = `
|
|||
<StyledSliderBase
|
||||
ariaLabel="directMethod.responseTimeout"
|
||||
max={300}
|
||||
min={0}
|
||||
min={10}
|
||||
onChange={[Function]}
|
||||
value={0}
|
||||
value={10}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@ import { HeaderView } from '../../../../shared/components/headerView';
|
|||
import '../../../../css/_deviceDetail.scss';
|
||||
|
||||
const SLIDER_MAX = 300;
|
||||
|
||||
const DEFAULT_TIMEOUT = 10;
|
||||
export interface DirectMethodState {
|
||||
connectionTimeout: number;
|
||||
methodName: string;
|
||||
|
@ -40,10 +40,10 @@ export default class DirectMethod extends React.Component<DirectMethodProps & Ro
|
|||
constructor(props: DirectMethodProps & RouteComponentProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
connectionTimeout: 0,
|
||||
connectionTimeout: DEFAULT_TIMEOUT,
|
||||
methodName: '',
|
||||
payload: '',
|
||||
responseTimeout: 0
|
||||
responseTimeout: DEFAULT_TIMEOUT
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче