diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 771752e..ad82353 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -601,8 +601,9 @@ input[type="date"] { border: none; border-radius: 6px; background: var(--input_background); - /* box-shadow: inset 1px 1px 2px -1px var(--shadow_color); */ padding: 3px 5px; + /* override user-agent style */ + min-width: 100px; color: var(--input_text); font-size: 1em; outline: 0; diff --git a/svelte/src/user_home/DepositCredit.svelte b/svelte/src/user_home/DepositCredit.svelte index 4d02a7c..bc23740 100644 --- a/svelte/src/user_home/DepositCredit.svelte +++ b/svelte/src/user_home/DepositCredit.svelte @@ -31,7 +31,6 @@ const checkout = async (network) => { } } -let show_expired = false let invoices = [] const load_invoices = async () => { loading = true @@ -94,7 +93,10 @@ onMount(() => { -

Open invoices

+

Past invoices

+

+ Invoices are deleted after one year of inactivity. +

@@ -107,48 +109,32 @@ onMount(() => { {#each invoices as row (row.id)} - {#if row.status === "New" || - row.status === "InvoiceCreated" || - row.status === "InvoiceProcessing" || - show_expired - } - - - - - - - {/if} + + + + + + {/each}
{formatDate(row.time, true, true, false)} - {#if row.status === "InvoiceCreated"} - New (waiting for payment) - {:else if row.status === "InvoiceProcessing"} - Payment received, waiting for confirmations - {:else if row.status === "InvoiceSettled"} - Paid - {:else if row.status === "InvoiceExpired"} - Expired - {:else} - {row.status} - {/if} - - {#if row.status === "New" || row.status === "InvoiceCreated"} - - paid Pay - - {/if} -
{formatDate(row.time, true, true, false)} + {#if row.status === "InvoiceCreated"} + New (waiting for payment) + {:else if row.status === "InvoiceProcessing"} + Payment received, waiting for confirmations + {:else if row.status === "InvoiceSettled"} + Paid + {:else if row.status === "InvoiceExpired"} + Expired + {:else} + {row.status} + {/if} + + {#if row.status === "New" || row.status === "InvoiceCreated"} + + paid Pay + + {/if} +
-
- -