mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
[KeyConnector] Updated remove warning in details view (#1309)
This commit is contained in:
parent
a6abb74810
commit
0490314cff
@ -193,6 +193,7 @@ export class PeopleComponent extends BasePeopleComponent<OrganizationUserUserDet
|
|||||||
comp.name = this.userNamePipe.transform(user);
|
comp.name = this.userNamePipe.transform(user);
|
||||||
comp.organizationId = this.organizationId;
|
comp.organizationId = this.organizationId;
|
||||||
comp.organizationUserId = user != null ? user.id : null;
|
comp.organizationUserId = user != null ? user.id : null;
|
||||||
|
comp.usesKeyConnector = user?.usesKeyConnector;
|
||||||
comp.onSavedUser.subscribe(() => {
|
comp.onSavedUser.subscribe(() => {
|
||||||
modal.close();
|
modal.close();
|
||||||
this.load();
|
this.load();
|
||||||
|
@ -33,6 +33,7 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
@Input() name: string;
|
@Input() name: string;
|
||||||
@Input() organizationUserId: string;
|
@Input() organizationUserId: string;
|
||||||
@Input() organizationId: string;
|
@Input() organizationId: string;
|
||||||
|
@Input() usesKeyConnector: boolean = false;
|
||||||
@Output() onSavedUser = new EventEmitter();
|
@Output() onSavedUser = new EventEmitter();
|
||||||
@Output() onDeletedUser = new EventEmitter();
|
@Output() onDeletedUser = new EventEmitter();
|
||||||
|
|
||||||
@ -193,9 +194,10 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const message = this.usesKeyConnector ? 'removeUserConfirmationKeyConnector' : 'removeUserConfirmation';
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
const confirmed = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t('removeUserConfirmation'), this.name,
|
this.i18nService.t(message), this.name, this.i18nService.t('yes'), this.i18nService.t('no'), 'warning'
|
||||||
this.i18nService.t('yes'), this.i18nService.t('no'), 'warning');
|
);
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user