diff --git a/packages/dapp-svelte-wallet/ui/lib/ListCard.svelte b/packages/dapp-svelte-wallet/ui/lib/ListCard.svelte new file mode 100644 index 00000000000..a6f25a42d32 --- /dev/null +++ b/packages/dapp-svelte-wallet/ui/lib/ListCard.svelte @@ -0,0 +1,53 @@ + + + + + + + {#if !Array.isArray(items) || items.length === 0} + No items. + {:else} + +
+
+ toggle(item)}> +
+ {expandIcon} + {item.text} +
+
+ + {#if expanded.includes(item)} +
+ +
+ {/if} +
+
+
+ {/if} + + +
diff --git a/packages/dapp-svelte-wallet/ui/src/Issuer.svelte b/packages/dapp-svelte-wallet/ui/src/Issuer.svelte index 75dab3e5703..32b863f9c2f 100644 --- a/packages/dapp-svelte-wallet/ui/src/Issuer.svelte +++ b/packages/dapp-svelte-wallet/ui/src/Issuer.svelte @@ -1,58 +1,32 @@ -{#if selected} - -
- -
- - - - - -
+
+ {#if summary} + + {/if} + {#if details} +
Board ID: E(walletP).publishIssuer(issuer[1].brand)} - id={issuer[1].issuerBoardId} /> + onPublish={() => E(walletP).publishIssuer(item[1].brand)} + id={item[1].issuerBoardId} />
- -
- {#if selected} - Make Purse - { - ev.stopPropagation(); - selected = false; - }} /> - {/if} -
- -{:else} -
- - - -
-{/if} + Make Purse + {/if} +
diff --git a/packages/dapp-svelte-wallet/ui/src/Issuers.svelte b/packages/dapp-svelte-wallet/ui/src/Issuers.svelte index f9ee1c51277..8155b21b4f8 100644 --- a/packages/dapp-svelte-wallet/ui/src/Issuers.svelte +++ b/packages/dapp-svelte-wallet/ui/src/Issuers.svelte @@ -1,12 +1,12 @@ - +
- - {#if !Array.isArray($issuers) || $issuers.length === 0} +
No issuers. - {:else} - -
- -
-
- {/if} +
+ +
+ +
+ +
+ +
E(walletP).addIssuer(petname, obj, true)}>Import
-
+