@ieeesa-npm/groups 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2151,6 +2151,19 @@ class EditUserRolesComponent {
|
|
|
2151
2151
|
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById?.classification,
|
|
2152
2152
|
});
|
|
2153
2153
|
this.updateEditUserRoleFormControls(this.editUserRoleFormGroup?.formGroup[0]?.controls?.length - 1, {
|
|
2154
|
+
type: FormControlType.SELECT,
|
|
2155
|
+
label: this.addUserRosterTexts?.label?.memberType + '*',
|
|
2156
|
+
controlName: 'memberType',
|
|
2157
|
+
dropdownOptions: this.memberTypes,
|
|
2158
|
+
value: this.memberTypes?.filter((option) => option?.name === this.selectedUserInfo?.memberStatus)[0],
|
|
2159
|
+
validation: [Validators.required],
|
|
2160
|
+
placeholder: '',
|
|
2161
|
+
supportMessage: this.addUserRosterTexts?.supportText?.memberType,
|
|
2162
|
+
requiredErrorMessage: this.addUserRosterTexts?.message?.error?.required,
|
|
2163
|
+
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.memberType,
|
|
2164
|
+
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById?.memberType,
|
|
2165
|
+
});
|
|
2166
|
+
this.updateEditUserRoleFormControls(this.editUserRoleFormGroup?.formGroup[0]?.controls?.length, {
|
|
2154
2167
|
type: FormControlType.AUTO_COMPLETE,
|
|
2155
2168
|
label: this.addUserRosterTexts?.label?.representingOrganization + '*',
|
|
2156
2169
|
controlName: 'representingOrg',
|
|
@@ -2172,19 +2185,6 @@ class EditUserRolesComponent {
|
|
|
2172
2185
|
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById
|
|
2173
2186
|
?.representingOrganization,
|
|
2174
2187
|
});
|
|
2175
|
-
this.updateEditUserRoleFormControls(this.editUserRoleFormGroup?.formGroup[0]?.controls?.length - 1, {
|
|
2176
|
-
type: FormControlType.SELECT,
|
|
2177
|
-
label: this.addUserRosterTexts?.label?.memberType + '*',
|
|
2178
|
-
controlName: 'memberType',
|
|
2179
|
-
dropdownOptions: this.memberTypes,
|
|
2180
|
-
value: this.memberTypes?.filter((option) => option?.name === this.selectedUserInfo?.memberStatus)[0],
|
|
2181
|
-
validation: [Validators.required],
|
|
2182
|
-
placeholder: '',
|
|
2183
|
-
supportMessage: this.addUserRosterTexts?.supportText?.memberType,
|
|
2184
|
-
requiredErrorMessage: this.addUserRosterTexts?.message?.error?.required,
|
|
2185
|
-
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.memberType,
|
|
2186
|
-
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById?.memberType,
|
|
2187
|
-
});
|
|
2188
2188
|
}
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Updates the edit user form group controls by adding fieldConfig at required index.
|
|
@@ -2356,6 +2356,7 @@ class EditUserRolesComponent {
|
|
|
2356
2356
|
* @memberof AddUserRosterComponent
|
|
2357
2357
|
*/
|
|
2358
2358
|
getOrganizations(orgName) {
|
|
2359
|
+
this.isSubmitButtonDisabled = this.groupsService.isSubmitButtonDisabled(this.groupRosterType, this.editUserRoleFormGroupRef?.status, this.selectedUserRoleIds);
|
|
2359
2360
|
this.organizations = [];
|
|
2360
2361
|
orgName = orgName?.trimStart();
|
|
2361
2362
|
this.updateFormControlOptions('representingOrg', 'autoCompleteOptions', []);
|
|
@@ -2878,6 +2879,7 @@ class AddUserRosterComponent {
|
|
|
2878
2879
|
* @memberof AddUserRosterComponent
|
|
2879
2880
|
*/
|
|
2880
2881
|
getOrganizations(orgName) {
|
|
2882
|
+
this.isSubmitButtonDisabled = this.groupService.isSubmitButtonDisabled(this.groupRosterType, this.addUserFormGroupRef?.status, this.selectedUserRoles);
|
|
2881
2883
|
this.organizations = [];
|
|
2882
2884
|
orgName = orgName?.trimStart();
|
|
2883
2885
|
this.updateFormControlOptions('representingOrg', 'autoCompleteOptions', []);
|