mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 03:57:31 +00:00
no message
This commit is contained in:
@@ -801,7 +801,12 @@ export class SettingsComponent extends React.Component<SettingsComponentProps, S
|
|||||||
private onMaxAutoPilotThroughputChange = (newThroughput: number): void =>
|
private onMaxAutoPilotThroughputChange = (newThroughput: number): void =>
|
||||||
this.setState({ autoPilotThroughput: newThroughput });
|
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 =>
|
private onAutoPilotSelected = (isAutoPilotSelected: boolean): void =>
|
||||||
this.setState({ isAutoPilotSelected: isAutoPilotSelected });
|
this.setState({ isAutoPilotSelected: isAutoPilotSelected });
|
||||||
|
|||||||
@@ -267,8 +267,10 @@ export class ThroughputInputViewModel extends WaitsForTemplateViewModel {
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
public onThroughputChange = (source: any) => {
|
public onThroughputCheck = (event: any) => {
|
||||||
window.alert("onThroughputChange");
|
if(event.value() < 400) {
|
||||||
|
window.alert("The value should not small than 400");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private _getSanitizedValue(): number {
|
private _getSanitizedValue(): number {
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
required: isManualThroughputInputFieldRequired()
|
required: isManualThroughputInputFieldRequired()
|
||||||
},
|
},
|
||||||
event:{
|
event:{
|
||||||
change: onThroughputChange
|
change: onThroughputCheck
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user