mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Make it so user cannot create or scale PG server group to 1 worker node (#16005)
* Added not equals validation * Added validation to worker node in deploy * Fixed info * Change string * Change string * Change string
This commit is contained in:
@@ -248,7 +248,13 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
inputType: 'number',
|
||||
placeHolder: loc.loading,
|
||||
required: true,
|
||||
ariaLabel: loc.workerNodeCount
|
||||
ariaLabel: loc.workerNodeCount,
|
||||
validationErrorMessage: loc.workerOneNodeValidationMessage
|
||||
}).withValidation((component) => {
|
||||
if (component.value === '1') {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}).component();
|
||||
|
||||
this.disposables.push(
|
||||
|
||||
Reference in New Issue
Block a user