Add required property to checkbox and set it for deployment dialog (#9392)

This commit is contained in:
Charles Gagnon
2020-03-02 07:54:13 -08:00
committed by GitHub
parent 6383bc7ebd
commit 01db78f743
4 changed files with 25 additions and 1 deletions

View File

@@ -297,7 +297,8 @@ export class ResourceTypePickerDialog extends DialogBase {
private createAgreementCheckbox(agreementInfo: AgreementInfo): azdata.FlexContainer {
const checkbox = this._view.modelBuilder.checkBox().withProperties<azdata.CheckBoxProperties>({
ariaLabel: this.getAgreementDisplayText(agreementInfo)
ariaLabel: this.getAgreementDisplayText(agreementInfo),
required: true
}).component();
checkbox.checked = false;
this._toDispose.push(checkbox.onChanged(() => {