@ieeesa-npm/groups 0.4.8 → 0.5.0
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.
- package/esm2022/lib/assets/constants.json +4 -2
- package/esm2022/lib/components/view-roster/view-roster.component.mjs +16 -1
- package/esm2022/lib/groups.component.mjs +2 -2
- package/esm2022/lib/services/groups.service.mjs +2 -1
- package/fesm2022/ieeesa-npm-groups.mjs +20 -2
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/view-roster/view-roster.component.d.ts +7 -2
- package/lib/services/groups.service.d.ts +10 -11
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ import * as i4 from '@angular/material/tooltip';
|
|
|
21
21
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
22
22
|
|
|
23
23
|
var addUserRoster = {
|
|
24
|
-
heading: "New User",
|
|
24
|
+
heading: "New System User",
|
|
25
25
|
label: {
|
|
26
26
|
email: "Email Address",
|
|
27
27
|
rightButtonLabel: "Search & Continue",
|
|
@@ -243,6 +243,8 @@ var errors = {
|
|
|
243
243
|
"1032": "No record found!",
|
|
244
244
|
"2001": "Email does not exists.",
|
|
245
245
|
"2002": "Role does not belong to the group type.",
|
|
246
|
+
"2010": "User details does not exist.",
|
|
247
|
+
"2011": "User app details does not exist.",
|
|
246
248
|
ER1000: "Allowed group types are not found for the selected group!"
|
|
247
249
|
};
|
|
248
250
|
var ariaLabel = {
|
|
@@ -317,6 +319,7 @@ class GroupsService {
|
|
|
317
319
|
this.alertService = alertService;
|
|
318
320
|
this.groupsText = errors;
|
|
319
321
|
this.openModalNotifier = new BehaviorSubject(GroupFunctionType.VIEW_ROSTER);
|
|
322
|
+
this.canShowMessage = false;
|
|
320
323
|
}
|
|
321
324
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
322
325
|
setAppConfig(apiBaseUrl, userPermission) {
|
|
@@ -1978,6 +1981,21 @@ class ViewRosterComponent {
|
|
|
1978
1981
|
this.getRoles();
|
|
1979
1982
|
this.getGroupUsersAndInitializeTableView();
|
|
1980
1983
|
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Show add new user success message when canShowMessage is set true
|
|
1986
|
+
* @memberof ViewRosterComponent
|
|
1987
|
+
*/
|
|
1988
|
+
ngAfterViewInit() {
|
|
1989
|
+
if (this.groupService.canShowMessage) {
|
|
1990
|
+
this.groupService.canShowMessage = false;
|
|
1991
|
+
this.alertService.showMessage({
|
|
1992
|
+
status: 'custom',
|
|
1993
|
+
message: this.constants?.addUserRoster?.message?.success?.submission,
|
|
1994
|
+
alertType: AlertType.SUCCESS,
|
|
1995
|
+
isCloseNeeded: true,
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1981
1999
|
/**
|
|
1982
2000
|
* Gets the group users by calling getGroupUsers() from groupService and sets tableData to display the users in a grid.
|
|
1983
2001
|
* @memberof ViewRosterComponent
|
|
@@ -2330,9 +2348,9 @@ class GroupsComponent {
|
|
|
2330
2348
|
}
|
|
2331
2349
|
case GroupFunctionType?.ADD_USER_TO_ROSTER: {
|
|
2332
2350
|
if (this.functionType === GroupFunctionType.ADD_USER_TO_ROSTER) {
|
|
2351
|
+
this.groupsService.canShowMessage = true;
|
|
2333
2352
|
this.viewRoster(this.groupsService.selectedGroupInfo);
|
|
2334
2353
|
}
|
|
2335
|
-
this.showAlertMessage(AlertType?.SUCCESS, this.addUserRosterTexts?.message?.success?.submission);
|
|
2336
2354
|
break;
|
|
2337
2355
|
}
|
|
2338
2356
|
default:
|