From b889b16f48434268c64e65ca0adc3e8b55172bed Mon Sep 17 00:00:00 2001 From: amirch1 Date: Mon, 8 Apr 2024 08:11:02 +0300 Subject: [PATCH] chore(settings/integration): update teams profile KMCNG-2613 --- .../teams/edit-profile/edit-profile.component.ts | 10 +++------- src/i18n/en.json | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/applications/settings-integration-settings-app/teams/edit-profile/edit-profile.component.ts b/src/applications/settings-integration-settings-app/teams/edit-profile/edit-profile.component.ts index 95ea88da5..1517a1c73 100644 --- a/src/applications/settings-integration-settings-app/teams/edit-profile/edit-profile.component.ts +++ b/src/applications/settings-integration-settings-app/teams/edit-profile/edit-profile.component.ts @@ -235,14 +235,10 @@ export class EditTeamsProfileComponent implements OnDestroy { const userIdSource = formValue.userId ? 'upn' : 'azure-id'; Object.assign(this._profile.settings, {userIdSource}); - if (formValue.postfix > 0) { - const userIdSuffixMethod = formValue.postfix === 1 ? 'remove' : 'append'; - Object.assign(this._profile.settings, {userIdSuffixMethod}); - } + const userIdSuffixMethod = formValue.postfix === 0 ? 'none' : formValue.postfix === 1 ? 'remove' : 'append'; + Object.assign(this._profile.settings, {userIdSuffixMethod}); - if (formValue.userPostfix?.length) { - Object.assign(this._profile.settings, {userIdSuffix: formValue.userPostfix}); - } + Object.assign(this._profile.settings, {userIdSuffix: formValue.userPostfix?.length ? formValue.userPostfix : ''}); const userNotFoundMethod = formValue.createUser ? 'create' : 'assign-default'; Object.assign(this._profile.settings, {userNotFoundMethod}); diff --git a/src/i18n/en.json b/src/i18n/en.json index 36bb3fbb0..9f709c4f1 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -3078,7 +3078,7 @@ "users1": "None", "users2": "Co-Viewers", "users3": "Co-Publishers", - "upn": "Teams UPN", + "upn": "Microsoft User Principle Name", "azure": "Azure user ID", "azure_tt": "Azure user ID tooltip", "createUser": "Create new user based on teams user",