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:
@@ -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>
|
||||
|
||||
@@ -59,6 +59,7 @@ describe("SendV2Component", () => {
|
||||
{ id: "1", name: "Send A" },
|
||||
{ id: "2", name: "Send B" },
|
||||
] as SendView[]),
|
||||
loading$: of(false),
|
||||
latestSearchText$: of(""),
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user