fix: set AZ required when create aggregate

1. Set AZ input required when create aggregate with new AZ
2. Set AZ select(which contains a no-select AZ) required when create aggregate without new AZ

Closes-Bug: #1990213
Change-Id: Ie84ef2aac98da92c5707db9e0355e23f3e96f6f9
(cherry picked from commit 849db0f740)
This commit is contained in:
Jingwei.Zhang
2022-09-20 13:32:18 +08:00
parent 3d7324765a
commit bec03e7fdf

View File

@@ -87,6 +87,7 @@ export class Create extends ModalAction {
options: this.azList,
tip: azNewTip,
hidden: isCreate,
required: !isCreate,
},
{
name: 'newAz',
@@ -94,6 +95,7 @@ export class Create extends ModalAction {
type: 'input',
help: azTip,
hidden: !isCreate,
required: isCreate,
},
];
}