Refactor create inputbox method (#24113)

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
Barbara Valdez
2023-08-15 13:36:02 -07:00
committed by GitHub
parent 8cbbf9eaeb
commit 3fbca593be
9 changed files with 284 additions and 67 deletions

View File

@@ -107,9 +107,14 @@ export class LoginDialog extends PrincipalDialogBase<Login, LoginViewInfo> {
}
private initializeGeneralSection(): void {
this.nameInput = this.createInputBox(objectManagementLoc.NameText, async (newValue) => {
this.nameInput = this.createInputBox(async (newValue) => {
this.objectInfo.name = newValue;
}, this.objectInfo.name, this.options.isNewObject);
}, {
ariaLabel: objectManagementLoc.NameText,
inputType: 'text',
enabled: this.options.isNewObject,
value: this.objectInfo.name
});
const nameContainer = this.createLabelInputContainer(objectManagementLoc.NameText, this.nameInput);
this.authTypeDropdown = this.createDropdown(objectManagementLoc.AuthTypeText,