cloud-ide-core 2.0.114 → 2.0.116
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/fesm2022/cloud-ide-core.mjs +11 -0
- package/fesm2022/cloud-ide-core.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15350,6 +15350,17 @@ class CideCoreUserCreateComponent {
|
|
|
15350
15350
|
title: `${userTypeLabel} Created`,
|
|
15351
15351
|
duration: 5000
|
|
15352
15352
|
});
|
|
15353
|
+
const responseData = response;
|
|
15354
|
+
const generatedId = responseData?.data?.syutm_type_specific_id || responseData?.syutm_type_specific_id;
|
|
15355
|
+
const responseUserType = responseData?.data?.syutm_user_type || responseData?.syutm_user_type || formUserType;
|
|
15356
|
+
// If a type-specific ID was auto-generated/returned, show it in a confirmation popup
|
|
15357
|
+
if (generatedId && (responseUserType === 'STUDENT' || responseUserType === 'TEACHER' || responseUserType === 'FACULTY')) {
|
|
15358
|
+
const idLabel = responseUserType === 'STUDENT' ? 'Student ID' : 'Faculty ID';
|
|
15359
|
+
this.notificationService.success(`${idLabel}: ${generatedId}`, {
|
|
15360
|
+
title: `${userTypeLabel} Created Successfully`,
|
|
15361
|
+
duration: 8000
|
|
15362
|
+
});
|
|
15363
|
+
}
|
|
15353
15364
|
// Navigate to appropriate listing page based on user type
|
|
15354
15365
|
if (userType === 'TEACHER' || userType === 'FACULTY') {
|
|
15355
15366
|
// Navigate to teacher listing page
|