mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
[SM-889] FIX - bulk activate SM members (#8375)
* fix: add accessSecretsManager property and filter checked users, refs SM-889 * fix: load members list on bulk sm complete, refs SM-889
This commit is contained in:
parent
7df3304a25
commit
2f3e37d713
@ -26,6 +26,10 @@ export class OrganizationUserView {
|
|||||||
twoFactorEnabled: boolean;
|
twoFactorEnabled: boolean;
|
||||||
usesKeyConnector: boolean;
|
usesKeyConnector: boolean;
|
||||||
hasMasterPassword: boolean;
|
hasMasterPassword: boolean;
|
||||||
|
/**
|
||||||
|
* True if this organizaztion user has been granted access to Secrets Manager, false otherwise.
|
||||||
|
*/
|
||||||
|
accessSecretsManager: boolean;
|
||||||
|
|
||||||
collections: CollectionAccessSelectionView[] = [];
|
collections: CollectionAccessSelectionView[] = [];
|
||||||
groups: string[] = [];
|
groups: string[] = [];
|
||||||
|
@ -571,7 +571,8 @@ export class PeopleComponent
|
|||||||
}
|
}
|
||||||
|
|
||||||
async bulkEnableSM() {
|
async bulkEnableSM() {
|
||||||
const users = this.getCheckedUsers();
|
const users = this.getCheckedUsers().filter((ou) => !ou.accessSecretsManager);
|
||||||
|
|
||||||
if (users.length === 0) {
|
if (users.length === 0) {
|
||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
"error",
|
"error",
|
||||||
@ -588,6 +589,7 @@ export class PeopleComponent
|
|||||||
|
|
||||||
await lastValueFrom(dialogRef.closed);
|
await lastValueFrom(dialogRef.closed);
|
||||||
this.selectAll(false);
|
this.selectAll(false);
|
||||||
|
await this.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
async events(user: OrganizationUserView) {
|
async events(user: OrganizationUserView) {
|
||||||
|
Loading…
Reference in New Issue
Block a user