@tuki-io/tuki-widgets 0.0.221 → 0.0.223
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/esm2020/user-manage/src/user-manage-widget.component.mjs +10 -4
- package/esm2020/users-list/src/app.constants.mjs +2 -1
- package/esm2020/users-list/src/services/user.service.mjs +8 -1
- package/esm2020/users-list/src/users-list.component.mjs +20 -7
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +10 -4
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +27 -6
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +9 -3
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +27 -6
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/package.json +1 -1
- package/users-list/src/app.constants.d.ts +1 -0
- package/users-list/src/services/user.service.d.ts +1 -0
|
@@ -1970,9 +1970,15 @@ class UserManageWidgetComponent {
|
|
|
1970
1970
|
return;
|
|
1971
1971
|
}
|
|
1972
1972
|
this.dataPending = true;
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1973
|
+
const currentLineAssociation = this.user?.devices?.[0]?.lineAssociations?.[0];
|
|
1974
|
+
const originLineAssociation = this.userService.originUser?.devices?.[0]?.lineAssociations?.[0];
|
|
1975
|
+
const currentMappedDid = this.user?.lines?.[0]?.mappedDids?.[0] || '';
|
|
1976
|
+
const originMappedDid = this.userService.originUser?.lines?.[0]?.mappedDids?.[0] || '';
|
|
1977
|
+
const didPatternDescription = this.userService.originUser?.lines?.[0]?.didPatterns?.[0]?.description || '';
|
|
1978
|
+
const lineAssociationChanged = currentLineAssociation && originLineAssociation && !currentLineAssociation.equals(originLineAssociation);
|
|
1979
|
+
const mappedDidChanged = currentMappedDid !== originMappedDid;
|
|
1980
|
+
if ((lineAssociationChanged || mappedDidChanged) && currentLineAssociation && originLineAssociation) {
|
|
1981
|
+
const subscription = this.userService.editTranslationPattern(this.user.cucmId, originMappedDid, currentMappedDid, currentLineAssociation.directoryNumber.directoryNumber, originLineAssociation.directoryNumber.routePartitionName, didPatternDescription).subscribe(() => {
|
|
1976
1982
|
this.dataPending = false;
|
|
1977
1983
|
this.onSave.next("user has been saved successfully..");
|
|
1978
1984
|
subscription.unsubscribe();
|