1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

[PM-12704] - fix loading state for send list (#11264)

* fix loading state for send service

* fix test

* fix test and service
This commit is contained in:
Jordan Aasen
2024-09-27 04:38:50 -07:00
committed by GitHub
parent ff57c72df5
commit 739c76a24f
5 changed files with 19 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
<popup-page>
<popup-page [loading]="sendsLoading$ | async">
<popup-header slot="header" [pageTitle]="'send' | i18n">
<ng-container slot="end">
<tools-new-send-dropdown *ngIf="!sendsDisabled"></tools-new-send-dropdown>

View File

@@ -59,6 +59,7 @@ describe("SendV2Component", () => {
{ id: "1", name: "Send A" },
{ id: "2", name: "Send B" },
] as SendView[]),
loading$: of(false),
latestSearchText$: of(""),
});

View File

@@ -55,6 +55,7 @@ export class SendV2Component implements OnInit, OnDestroy {
protected listState: SendState | null = null;
protected sends$ = this.sendItemsService.filteredAndSortedSends$;
protected sendsLoading$ = this.sendItemsService.loading$;
protected title: string = "allSends";
protected noItemIcon = NoSendsIcon;
protected noResultsIcon = Icons.NoResults;