diff --git a/js/app.js b/js/app.js
index a052f804c..1c3a6fa7f 100644
--- a/js/app.js
+++ b/js/app.js
@@ -4,14 +4,11 @@ var App = React.createClass({
var match, param, val, viewingPage,
drawerOpenRaw = sessionStorage.getItem('drawerOpen');
- [match, param, val] = window.location.search.match(/\??([^=]*)(?:=(.*))?/);
+ [match, viewingPage, val] = window.location.search.match(/\??([^=]*)(?:=(.*))?/);
- if (param && ['settings', 'discover', 'help', 'start', 'watch', 'report', 'files', 'claim', 'show', 'wallet', 'publish'].indexOf(param) != -1) {
- viewingPage = param;
- }
return {
- viewingPage: viewingPage ? viewingPage : 'discover',
+ viewingPage: viewingPage,
drawerOpen: drawerOpenRaw !== null ? JSON.parse(drawerOpenRaw) : true,
pageArgs: val,
};
@@ -72,12 +69,28 @@ var App = React.createClass({
pageArgs: term
});
},
+ getHeaderLinks: function()
+ {
+ switch(this.state.viewingPage)
+ {
+ case 'wallet':
+ case 'send':
+ case 'receive':
+ case 'claim':
+ return {
+ '?wallet' : 'Overview',
+ '?send' : 'Send',
+ '?receive' : 'Receive',
+ '?claim' : 'Claim Beta Code'
+ };
+ default:
+ return null;
+ }
+ },
getMainContent: function()
{
switch(this.state.viewingPage)
{
- case 'discover':
- return
Amount | +Date | +Time | +Transaction | +
---|