mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-28 05:11: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 =>
|
||||
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 });
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
required: isManualThroughputInputFieldRequired()
|
||||
},
|
||||
event:{
|
||||
change: onThroughputChange
|
||||
change: onThroughputCheck
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user