fix paths previously missed during restructuring

This commit is contained in:
Florian Dold 2017-05-29 01:48:46 +02:00
parent f5a20cc822
commit 5755f7a814
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
4 changed files with 13 additions and 13 deletions

View File

@ -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;
});

View File

@ -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>

View File

@ -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 />

View File

@ -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