no message

This commit is contained in:
Chris-MS-896
2020-12-22 21:53:28 -06:00
parent 4664038df0
commit 1c8deb1fcc
3 changed files with 11 additions and 4 deletions

View File

@@ -801,7 +801,12 @@ export class SettingsComponent extends React.Component<SettingsComponentProps, S
private onMaxAutoPilotThroughputChange = (newThroughput: number): void =>
this.setState({ autoPilotThroughput: newThroughput });
private onThroughputChange = (newThroughput: number): void => this.setState({ throughput: newThroughput });
private onThroughputChange = (newThroughput: number): void => {
if(newThroughput < 400) {
return alert("The value should not small than 400");
}
this.setState({ throughput: newThroughput });
}
private onAutoPilotSelected = (isAutoPilotSelected: boolean): void =>
this.setState({ isAutoPilotSelected: isAutoPilotSelected });

View File

@@ -267,8 +267,10 @@ export class ThroughputInputViewModel extends WaitsForTemplateViewModel {
return true;
};
public onThroughputChange = (source: any) => {
window.alert("onThroughputChange");
public onThroughputCheck = (event: any) => {
if(event.value() < 400) {
window.alert("The value should not small than 400");
}
};
private _getSanitizedValue(): number {

View File

@@ -152,7 +152,7 @@
required: isManualThroughputInputFieldRequired()
},
event:{
change: onThroughputChange
change: onThroughputCheck
}"
/>
</div>