From 0490314cff3fcdbd0e523025e42032943a91c81b Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 22 Nov 2021 18:39:20 +0100 Subject: [PATCH] [KeyConnector] Updated remove warning in details view (#1309) --- src/app/organizations/manage/people.component.ts | 1 + src/app/organizations/manage/user-add-edit.component.ts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/organizations/manage/people.component.ts b/src/app/organizations/manage/people.component.ts index 0d368907b5..40a398c2f9 100644 --- a/src/app/organizations/manage/people.component.ts +++ b/src/app/organizations/manage/people.component.ts @@ -193,6 +193,7 @@ export class PeopleComponent extends BasePeopleComponent { modal.close(); this.load(); diff --git a/src/app/organizations/manage/user-add-edit.component.ts b/src/app/organizations/manage/user-add-edit.component.ts index cb05dbe8a6..0ea8d609f6 100644 --- a/src/app/organizations/manage/user-add-edit.component.ts +++ b/src/app/organizations/manage/user-add-edit.component.ts @@ -33,6 +33,7 @@ export class UserAddEditComponent implements OnInit { @Input() name: string; @Input() organizationUserId: string; @Input() organizationId: string; + @Input() usesKeyConnector: boolean = false; @Output() onSavedUser = new EventEmitter(); @Output() onDeletedUser = new EventEmitter(); @@ -193,9 +194,10 @@ export class UserAddEditComponent implements OnInit { return; } + const message = this.usesKeyConnector ? 'removeUserConfirmationKeyConnector' : 'removeUserConfirmation'; const confirmed = await this.platformUtilsService.showDialog( - this.i18nService.t('removeUserConfirmation'), this.name, - this.i18nService.t('yes'), this.i18nService.t('no'), 'warning'); + this.i18nService.t(message), this.name, this.i18nService.t('yes'), this.i18nService.t('no'), 'warning' + ); if (!confirmed) { return false; }