mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +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 }}
|
{{ "remove" | i18n }}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitMenuItem (click)="bulkDelete()">
|
<button
|
||||||
|
*ngIf="accountDeprovisioningEnabled$ | async"
|
||||||
|
type="button"
|
||||||
|
bitMenuItem
|
||||||
|
(click)="bulkDelete()"
|
||||||
|
>
|
||||||
<span class="tw-text-danger">
|
<span class="tw-text-danger">
|
||||||
<i aria-hidden="true" class="bwi bwi-trash"></i>
|
<i aria-hidden="true" class="bwi bwi-trash"></i>
|
||||||
{{ "delete" | i18n }}
|
{{ "delete" | i18n }}
|
||||||
|
|||||||
@@ -103,6 +103,10 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
|
|||||||
FeatureFlag.EnableUpgradePasswordManagerSub,
|
FeatureFlag.EnableUpgradePasswordManagerSub,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
protected accountDeprovisioningEnabled$: Observable<boolean> = this.configService.getFeatureFlag$(
|
||||||
|
FeatureFlag.AccountDeprovisioning,
|
||||||
|
);
|
||||||
|
|
||||||
// Fixed sizes used for cdkVirtualScroll
|
// Fixed sizes used for cdkVirtualScroll
|
||||||
protected rowHeight = 62;
|
protected rowHeight = 62;
|
||||||
protected rowHeightClass = `tw-h-[62px]`;
|
protected rowHeightClass = `tw-h-[62px]`;
|
||||||
|
|||||||
Reference in New Issue
Block a user