-
+
Back
-
Accounts
+
Accounts
+
+
+
+
+
+
+ {filteredAccounts.length}{filteredAccounts.length !== accounts.length ? ` of ${accounts.length}` : ""} accounts
+
+
+
+
-
-
-
- {#if accounts.length === 0}
+ {#if filteredAccounts.length === 0}
- No accounts yet.
- Create an account to get started.
+
+ {accounts.length === 0 ? "No accounts yet." : "No accounts match your search."}
+
+
+ {accounts.length === 0 ? "Create an account to get started." : "Try a different search."}
+
@@ -36,7 +63,7 @@
{:else}
- {#each accounts as account (account.id)}
+ {#each filteredAccounts as account (account.id)}
Account {account.id}
diff --git a/src/routes/receipts/+page.svelte b/src/routes/receipts/+page.svelte
index 4626d1c6..4577d39e 100644
--- a/src/routes/receipts/+page.svelte
+++ b/src/routes/receipts/+page.svelte
@@ -1,9 +1,19 @@
@@ -12,20 +22,37 @@
-
+
Back
-
Receipts
+
Receipts
+
+
+
+
+
+
+ {filteredReceipts.length}{filteredReceipts.length !== receipts.length ? ` of ${receipts.length}` : ""} receipts
+
+
+
+
-
-
-
- {#if receipts.length === 0}
+ {#if filteredReceipts.length === 0}
- No receipts yet.
- Create a receipt to get started.
+
+ {receipts.length === 0 ? "No receipts yet." : "No receipts match your search."}
+
+
+ {receipts.length === 0 ? "Create a receipt to get started." : "Try a different search."}
+
@@ -36,7 +63,7 @@
{:else}
- {#each receipts as receipt (receipt.id)}
+ {#each filteredReceipts as receipt (receipt.id)}
Receipt {receipt.id}
diff --git a/src/routes/transactions/+page.svelte b/src/routes/transactions/+page.svelte
index 892b6f38..33b6d977 100644
--- a/src/routes/transactions/+page.svelte
+++ b/src/routes/transactions/+page.svelte
@@ -1,9 +1,19 @@
@@ -12,20 +22,37 @@
-
+
Back
-
Transactions
+
Transactions
+
+
+
+
+
+
+ {filteredTransactions.length}{filteredTransactions.length !== transactions.length ? ` of ${transactions.length}` : ""} transactions
+
+
+
+
-
-
-
- {#if transactions.length === 0}
+ {#if filteredTransactions.length === 0}
- No transactions yet.
- Create a transaction to get started.
+
+ {transactions.length === 0 ? "No transactions yet." : "No transactions match your search."}
+
+
+ {transactions.length === 0 ? "Create a transaction to get started." : "Try a different search."}
+
@@ -36,7 +63,7 @@
{:else}
- {#each transactions as tx (tx.id)}
+ {#each filteredTransactions as tx (tx.id)}
Transaction {tx.id}