Skip to content

Commit

Permalink
[PM-12774] - don't display filters when no sends are available (#11298)
Browse files Browse the repository at this point in the history
* don't display filters when no sends are available

* move logic down. add conditional class

* fix logic for send filters
  • Loading branch information
jaasen-livefront authored Oct 1, 2024
1 parent 256c6ae commit ab5a02f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<bit-callout *ngIf="sendsDisabled" [title]="'sendDisabled' | i18n">
{{ "sendDisabledWarning" | i18n }}
</bit-callout>
<ng-container *ngIf="!sendsDisabled">
<ng-container *ngIf="listState !== sendState.Empty">
<tools-send-search></tools-send-search>
<app-send-list-filters></app-send-list-filters>
</ng-container>
Expand Down
2 changes: 1 addition & 1 deletion libs/tools/send/send-ui/src/services/send-items.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit ab5a02f

Please sign in to comment.