1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +01:00

[PM-12774] - don't display filters when no sends are available (#11298)

* don't display filters when no sends are available

* move logic down. add conditional class

* fix logic for send filters
This commit is contained in:
Jordan Aasen 2024-10-01 11:46:10 -07:00 committed by GitHub
parent 256c6aef5c
commit ab5a02f483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<bit-callout *ngIf="sendsDisabled" [title]="'sendDisabled' | i18n"> <bit-callout *ngIf="sendsDisabled" [title]="'sendDisabled' | i18n">
{{ "sendDisabledWarning" | i18n }} {{ "sendDisabledWarning" | i18n }}
</bit-callout> </bit-callout>
<ng-container *ngIf="!sendsDisabled"> <ng-container *ngIf="listState !== sendState.Empty">
<tools-send-search></tools-send-search> <tools-send-search></tools-send-search>
<app-send-list-filters></app-send-list-filters> <app-send-list-filters></app-send-list-filters>
</ng-container> </ng-container>

View File

@ -83,7 +83,7 @@ export class SendItemsService {
); );
/** /**
* Observable that indicates whether the user's vault is empty. * Observable that indicates whether the user's send list is empty.
*/ */
emptyList$: Observable<boolean> = this._sendList$.pipe(map((sends) => !sends.length)); emptyList$: Observable<boolean> = this._sendList$.pipe(map((sends) => !sends.length));