Skip to content

Commit

Permalink
chore(settings/integration): update teams profile KMCNG-2613
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed Apr 8, 2024
1 parent d2d480e commit b889b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b889b16

Please sign in to comment.