Skip to content

Commit

Permalink
line breaks, no contract cases
Browse files Browse the repository at this point in the history
  • Loading branch information
2qx committed Sep 20, 2023
1 parent c857ff7 commit 07ce098
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chi/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
{/if}
<tr>
<td />
<td colspan="3">{$_('receive')}:</td>
<td style="line-break:auto;" colspan="3">{$_('receive')}:</td>
</tr>
<tr>
<td />
Expand Down
2 changes: 2 additions & 0 deletions packages/chi/src/routes/chart/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<pre style="font-size:x-small;">{ts.id}</pre>
<ContractChart bind:series={ts.data} />
{/each}
{:else if !receiptAddress }
-
{:else}
<progress id="progress-bar" aria-label="Content loading…" />
{/if}
5 changes: 5 additions & 0 deletions packages/chi/src/routes/table/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import { beforeUpdate } from 'svelte';
import { Perpetuity } from '@unspent/phi';
import { receiptAddressStore } from '$lib/store.js';
import { Contract } from 'cashscript';
let receiptAddress = '';
let utxos = [];
let contract;
receiptAddressStore.subscribe((value) => {
receiptAddress = value;
Expand All @@ -20,6 +22,7 @@
const loadSeries = async () => {
utxos = await contract.getUtxos();
};
</script>

Expand All @@ -29,6 +32,8 @@
<pre>{op.height}</pre>
<pre>{op.txid}:{op.vout}</pre>
{/each}
{:else if !receiptAddress }
-
{:else}
<progress id="progress-bar" aria-label="Content loading…" />
{/if}

0 comments on commit 07ce098

Please sign in to comment.