- @if (!selectedSubscriptionId) {
-
-
Select a subscription to view invoices.
-
- } @else if (invoicesLoading$ | async) {
+ @if (historyListLoading$ | async) {
- Loading invoices...
+ Loading invoice history...
- } @else if (allInvoices().length === 0) {
-
-
No invoices for this subscription.
-
- } @else if (filteredAllInvoices().length === 0) {
-
-
No invoices match your search.
-
} @else {
- @for (inv of filteredAllInvoices(); track inv.id) {
-
+ @if (historyListError$ | async; as listErr) {
+
{{ listErr }}
+ }
+ @if (historyList().length === 0) {
+
+ } @else if (filteredHistoryList().length === 0) {
+
+
No invoices match your search.
+
+ } @else {
+ @for (inv of filteredHistoryList(); track inv.id) {
+
+ }
}
}