From fbabcf61918bcc99b3b57d579d142b50e96144ec Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Wed, 15 Feb 2017 15:35:56 -0800 Subject: Change networks from lock screen. --- ui/app/app.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ui/app/app.js') diff --git a/ui/app/app.js b/ui/app/app.js index 8aae38067..01e36cc62 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -122,9 +122,9 @@ App.prototype.renderAppBar = function () { background: props.isUnlocked ? 'white' : 'none', height: '36px', position: 'relative', - zIndex: 2, + zIndex: 10, }, - }, props.isUnlocked && [ + }, [ h('div', { style: { @@ -159,14 +159,14 @@ App.prototype.renderAppBar = function () { ]), // metamask name - h('h1', { + props.isUnlocked && h('h1', { style: { position: 'relative', left: '9px', }, }, 'MetaMask'), - h('div', { + props.isUnlocked && h('div', { style: { display: 'flex', flexDirection: 'row', @@ -175,7 +175,7 @@ App.prototype.renderAppBar = function () { }, [ // small accounts nav - h(Tooltip, { title: 'Switch Accounts' }, [ + props.isUnlocked && h(Tooltip, { title: 'Switch Accounts' }, [ h('img.cursor-pointer.color-orange', { src: 'images/switch_acc.svg', style: { @@ -190,7 +190,7 @@ App.prototype.renderAppBar = function () { ]), // hamburger - h(SandwichExpando, { + props.isUnlocked && h(SandwichExpando, { width: 16, barHeight: 2, padding: 0, -- cgit From 9aa70fbaba164b490c02ca16a0bfa023e2f93dcf Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Wed, 15 Feb 2017 15:37:38 -0800 Subject: Remove custom RPC option when on lock screen. --- ui/app/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/app/app.js') diff --git a/ui/app/app.js b/ui/app/app.js index 01e36cc62..ea755bec5 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -262,7 +262,7 @@ App.prototype.renderNetworkDropdown = function () { this.renderCustomOption(props.provider), - h(DropMenuItem, { + props.isUnlocked && h(DropMenuItem, { label: 'Custom RPC', closeMenu: () => this.setState({ isNetworkMenuOpen: false }), action: () => this.props.dispatch(actions.showConfigPage()), -- cgit