link to advanced tree view

This commit is contained in:
Florian Dold 2016-11-14 00:33:15 +01:00
parent 8b855c969d
commit 48bac7d4a9

View File

@ -306,7 +306,14 @@ class WalletBalanceView extends React.Component<any, any> {
); );
}); });
if (listing.length > 0) { if (listing.length > 0) {
return <div>{listing}</div>; let link = chrome.extension.getURL("/src/pages/tree.html");
let linkElem = <a href={link} target="_blank">advanced view</a>;
return (
<div>
{listing}
{linkElem}
</div>
);
} }
return this.renderEmpty(); return this.renderEmpty();
@ -470,13 +477,13 @@ function confirmReset() {
function WalletDebug(props: any) { function WalletDebug(props: any) {
return (<div> return (<div>
<p>Debug tools:</p> <p>Debug tools:</p>
<button onClick={openExtensionPage("popup/popup.html")}> <button onClick={openExtensionPage("/src/popup/popup.html")}>
wallet tab wallet tab
</button> </button>
<button onClick={openExtensionPage("pages/show-db.html")}> <button onClick={openExtensionPage("/src/pages/show-db.html")}>
show db show db
</button> </button>
<button onClick={openExtensionPage("pages/tree.html")}> <button onClick={openExtensionPage("/src/pages/tree.html")}>
show tree show tree
</button> </button>
<br /> <br />