mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-23 10:51:30 +00:00
Compare commits
4 Commits
create_dat
...
v-yiqcao/t
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
417a6151be | ||
|
|
3c25788e72 | ||
|
|
1c8deb1fcc | ||
|
|
4664038df0 |
@@ -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,6 +267,12 @@ export class ThroughputInputViewModel extends WaitsForTemplateViewModel {
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public onThroughputCheck = (event: any) => {
|
||||||
|
if (event.value() < 400) {
|
||||||
|
window.alert("The value should not small than 400");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
private _getSanitizedValue(): number {
|
private _getSanitizedValue(): number {
|
||||||
let throughput = this.value();
|
let throughput = this.value();
|
||||||
|
|
||||||
|
|||||||
@@ -150,6 +150,9 @@
|
|||||||
'aria-label': ariaLabel,
|
'aria-label': ariaLabel,
|
||||||
disabled: overrideWithAutoPilotSettings(),
|
disabled: overrideWithAutoPilotSettings(),
|
||||||
required: isManualThroughputInputFieldRequired()
|
required: isManualThroughputInputFieldRequired()
|
||||||
|
},
|
||||||
|
event:{
|
||||||
|
change: onThroughputCheck
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user