diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-29 01:48:46 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-29 01:48:46 +0200 |
commit | 5755f7a81433dea3754f9f86d90884cf23b7ad64 (patch) | |
tree | fb1943180cf6cbf7de6cb36a327232b2b3999b13 /src | |
parent | f5a20cc822139190c32e54f395fe857a8ea240ac (diff) |
fix paths previously missed during restructuring
Diffstat (limited to 'src')
-rw-r--r-- | src/webex/notify.ts | 6 | ||||
-rw-r--r-- | src/webex/pages/add-auditor.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/popup.tsx | 14 | ||||
-rw-r--r-- | src/webex/wxBackend.ts | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/src/webex/notify.ts b/src/webex/notify.ts index 733367a59..23e73d145 100644 --- a/src/webex/notify.ts +++ b/src/webex/notify.ts @@ -388,7 +388,7 @@ async function processProposal(proposal: any) { const offerId = await saveOffer(proposal); const uri = new URI(chrome.extension.getURL( - "/src/pages/confirm-contract.html")); + "/src/webex/pages/confirm-contract.html")); const params = { offerId: offerId.toString(), }; @@ -512,7 +512,7 @@ function registerHandlers() { suggested_exchange_url: msg.suggested_exchange_url, wt_types: JSON.stringify(msg.wt_types), }; - const uri = new URI(chrome.extension.getURL("/src/pages/confirm-create-reserve.html")); + const uri = new URI(chrome.extension.getURL("/src/webex/pages/confirm-create-reserve.html")); const redirectUrl = uri.query(params).href(); window.location.href = redirectUrl; }); @@ -521,7 +521,7 @@ function registerHandlers() { const params = { req: JSON.stringify(msg), }; - const uri = new URI(chrome.extension.getURL("/src/pages/add-auditor.html")); + const uri = new URI(chrome.extension.getURL("/src/webex/pages/add-auditor.html")); const redirectUrl = uri.query(params).href(); window.location.href = redirectUrl; }); diff --git a/src/webex/pages/add-auditor.tsx b/src/webex/pages/add-auditor.tsx index c1a9f997f..e4d84798b 100644 --- a/src/webex/pages/add-auditor.tsx +++ b/src/webex/pages/add-auditor.tsx @@ -100,7 +100,7 @@ class ConfirmAuditor extends ImplicitStateComponent<ConfirmAuditorProps> { <div id="main"> <p>Do you want to let <strong>{this.props.auditorPub}</strong> audit the currency "{this.props.currency}"?</p> {this.addDone() ? - (<div>Auditor was added! You can also <a href={chrome.extension.getURL("/src/pages/auditors.html")}>view and edit</a> auditors.</div>) + (<div>Auditor was added! You can also <a href={chrome.extension.getURL("/src/webex/pages/auditors.html")}>view and edit</a> auditors.</div>) : (<div> <button onClick={() => this.add()} className="pure-button pure-button-primary">Yes</button> diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index a806cfef9..f710156a5 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -234,7 +234,7 @@ class WalletBalanceView extends React.Component<any, any> { renderEmpty(): JSX.Element { let helpLink = ( - <ExtensionLink target="/src/pages/help/empty-wallet.html"> + <ExtensionLink target="/src/webex/pages/help/empty-wallet.html"> {i18n.str`help`} </ExtensionLink> ); @@ -316,9 +316,9 @@ class WalletBalanceView extends React.Component<any, any> { </p> ); }); - let link = chrome.extension.getURL("/src/pages/auditors.html"); + let link = chrome.extension.getURL("/src/webex/pages/auditors.html"); let linkElem = <a className="actionLink" href={link} target="_blank">Trusted Auditors and Exchanges</a>; - let paybackLink = chrome.extension.getURL("/src/pages/payback.html"); + let paybackLink = chrome.extension.getURL("/src/webex/pages/payback.html"); let paybackLinkElem = <a className="actionLink" href={link} target="_blank">Trusted Auditors and Exchanges</a>; return ( <div> @@ -489,16 +489,16 @@ function confirmReset() { function WalletDebug(props: any) { return (<div> <p>Debug tools:</p> - <button onClick={openExtensionPage("/src/pages/popup.html")}> + <button onClick={openExtensionPage("/src/webex/pages/popup.html")}> wallet tab </button> - <button onClick={openExtensionPage("/src/pages/show-db.html")}> + <button onClick={openExtensionPage("/src/webex/pages/show-db.html")}> show db </button> - <button onClick={openExtensionPage("/src/pages/tree.html")}> + <button onClick={openExtensionPage("/src/webex/pages/tree.html")}> show tree </button> - <button onClick={openExtensionPage("/src/pages/logs.html")}> + <button onClick={openExtensionPage("/src/webex/pages/logs.html")}> show logs </button> <br /> diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index 35e1ff938..2579bc317 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -446,7 +446,7 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea try { amountParsed = JSON.parse(amount); } catch (e) { - const uri = new URI(chrome.extension.getURL("/src/pages/error.html")); + const uri = new URI(chrome.extension.getURL("/src/webex/pages/error.html")); const p = { message: `Can't parse amount ("${amount}"): ${e.message}`, }; @@ -467,7 +467,7 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea suggested_exchange_url: headers["x-taler-suggested-exchange"], wt_types: wtTypes, }; - const uri = new URI(chrome.extension.getURL("/src/pages/confirm-create-reserve.html")); + const uri = new URI(chrome.extension.getURL("/src/webex/pages/confirm-create-reserve.html")); const redirectUrl = uri.query(params).href(); console.log("redirecting to", redirectUrl); // FIXME: use direct redirect when https://bugzilla.mozilla.org/show_bug.cgi?id=707624 is fixed |