mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Remove unneeded validation error messages (#14531)
This commit is contained in:
@@ -263,7 +263,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
// Worker node count
|
||||
this.workerBox = this.modelView.modelBuilder.inputBox().withProperties<azdata.InputBoxProperties>({
|
||||
readOnly: false,
|
||||
validationErrorMessage: loc.workerValidationErrorMessage,
|
||||
inputType: 'number',
|
||||
placeHolder: loc.loading,
|
||||
required: true
|
||||
@@ -319,7 +318,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.workerMemoryRequestBox = this.modelView.modelBuilder.inputBox().withProperties<azdata.InputBoxProperties>({
|
||||
readOnly: false,
|
||||
min: 0.25,
|
||||
validationErrorMessage: loc.memoryRequestValidationErrorMessage,
|
||||
inputType: 'number',
|
||||
placeHolder: loc.loading
|
||||
}).component();
|
||||
@@ -340,7 +338,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.workerMemoryLimitBox = this.modelView.modelBuilder.inputBox().withProperties<azdata.InputBoxProperties>({
|
||||
readOnly: false,
|
||||
min: 0.25,
|
||||
validationErrorMessage: loc.memoryLimitValidationErrorMessage,
|
||||
inputType: 'number',
|
||||
placeHolder: loc.loading
|
||||
}).component();
|
||||
@@ -397,7 +394,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.coordinatorMemoryRequestBox = this.modelView.modelBuilder.inputBox().withProperties<azdata.InputBoxProperties>({
|
||||
readOnly: false,
|
||||
min: 0.25,
|
||||
validationErrorMessage: loc.memoryRequestValidationErrorMessage,
|
||||
inputType: 'number',
|
||||
placeHolder: loc.loading
|
||||
}).component();
|
||||
@@ -418,7 +414,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.coordinatorMemoryLimitBox = this.modelView.modelBuilder.inputBox().withProperties<azdata.InputBoxProperties>({
|
||||
readOnly: false,
|
||||
min: 0.25,
|
||||
validationErrorMessage: loc.memoryLimitValidationErrorMessage,
|
||||
inputType: 'number',
|
||||
placeHolder: loc.loading
|
||||
}).component();
|
||||
@@ -608,7 +603,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.currentConfiguration.workerCoresRequest = '';
|
||||
}
|
||||
|
||||
this.workerCoresRequestBox!.validationErrorMessage = loc.validationMin(this.workerCoresRequestBox!.min!);
|
||||
this.workerCoresRequestBox!.placeHolder = '';
|
||||
this.workerCoresRequestBox!.value = this.currentConfiguration.workerCoresRequest;
|
||||
this.saveArgs.workerCoresRequest = undefined;
|
||||
@@ -619,7 +613,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.currentConfiguration.workerCoresLimit = '';
|
||||
}
|
||||
|
||||
this.workerCoresLimitBox!.validationErrorMessage = loc.validationMin(this.workerCoresLimitBox!.min!);
|
||||
this.workerCoresLimitBox!.placeHolder = '';
|
||||
this.workerCoresLimitBox!.value = this.currentConfiguration.workerCoresLimit;
|
||||
this.saveArgs.workerCoresLimit = undefined;
|
||||
@@ -658,7 +651,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.currentConfiguration.coordinatorCoresRequest = '';
|
||||
}
|
||||
|
||||
this.coordinatorCoresRequestBox!.validationErrorMessage = loc.validationMin(this.coordinatorCoresRequestBox!.min!);
|
||||
this.coordinatorCoresRequestBox!.placeHolder = '';
|
||||
this.coordinatorCoresRequestBox!.value = this.currentConfiguration.coordinatorCoresRequest;
|
||||
this.saveArgs.coordinatorCoresRequest = undefined;
|
||||
@@ -669,7 +661,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
this.currentConfiguration.coordinatorCoresLimit = '';
|
||||
}
|
||||
|
||||
this.coordinatorCoresLimitBox!.validationErrorMessage = loc.validationMin(this.coordinatorCoresLimitBox!.min!);
|
||||
this.coordinatorCoresLimitBox!.placeHolder = '';
|
||||
this.coordinatorCoresLimitBox!.value = this.currentConfiguration.coordinatorCoresLimit;
|
||||
this.saveArgs.coordinatorCoresLimit = undefined;
|
||||
|
||||
Reference in New Issue
Block a user