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:
@@ -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 }}
|
||||
|
||||
@@ -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]`;
|
||||
|
||||
Reference in New Issue
Block a user