[AC-2601] Only hide vault filter for providers when feature flag is enabled (#9179)

This commit is contained in:
Shane Melton 2024-05-16 14:24:18 -07:00 committed by GitHub
parent 8cc113c5a4
commit ff15b05d2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@
></app-org-vault-header>
<div class="row">
<div class="col-3" *ngIf="!organization?.isProviderUser">
<div class="col-3" *ngIf="!hideVaultFilters">
<div class="groupings">
<div class="content">
<div class="inner-content">
@ -26,7 +26,7 @@
</div>
</div>
</div>
<div [class]="organization?.isProviderUser ? 'col-12' : 'col-9'">
<div [class]="hideVaultFilters ? 'col-12' : 'col-9'">
<bit-toggle-group
*ngIf="showAddAccessToggle && activeFilter.selectedCollectionNode"
[selected]="addAccessStatus$ | async"

View File

@ -166,6 +166,10 @@ export class VaultComponent implements OnInit, OnDestroy {
return this._restrictProviderAccessFlagEnabled && this.flexibleCollectionsV1Enabled;
}
protected get hideVaultFilters(): boolean {
return this.restrictProviderAccessEnabled && this.organization?.isProviderUser;
}
private searchText$ = new Subject<string>();
private refresh$ = new BehaviorSubject<void>(null);
private destroy$ = new Subject<void>();