1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

Refactor members component to only display bulk user deletion option if the Account Deprovisioning flag is enabled

This commit is contained in:
Rui Tome
2024-11-08 11:34:23 +00:00
parent 44634e5bd0
commit 29b3bfbb23
2 changed files with 10 additions and 1 deletions

View File

@@ -137,7 +137,12 @@
{{ "remove" | i18n }}
</span>
</button>
<button type="button" bitMenuItem (click)="bulkDelete()">
<button
*ngIf="accountDeprovisioningEnabled$ | async"
type="button"
bitMenuItem
(click)="bulkDelete()"
>
<span class="tw-text-danger">
<i aria-hidden="true" class="bwi bwi-trash"></i>
{{ "delete" | i18n }}

View File

@@ -103,6 +103,10 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
FeatureFlag.EnableUpgradePasswordManagerSub,
);
protected accountDeprovisioningEnabled$: Observable<boolean> = this.configService.getFeatureFlag$(
FeatureFlag.AccountDeprovisioning,
);
// Fixed sizes used for cdkVirtualScroll
protected rowHeight = 62;
protected rowHeightClass = `tw-h-[62px]`;