diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-10-31 04:57:23 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-10-31 05:00:04 +0800 |
commit | 02b0cf2e6d038ead318e9a8b63d493ba710a5187 (patch) | |
tree | 803737d2364365d72d96989dfd264f2bb6935cb0 /ui/app/first-time/init-menu.js | |
parent | 24181970416929e51562856d475d16afc1fa2441 (diff) | |
download | tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.tar tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.tar.gz tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.tar.bz2 tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.tar.lz tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.tar.xz tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.tar.zst tangerine-wallet-browser-02b0cf2e6d038ead318e9a8b63d493ba710a5187.zip |
Add password warning div.
Diffstat (limited to 'ui/app/first-time/init-menu.js')
-rw-r--r-- | ui/app/first-time/init-menu.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/first-time/init-menu.js b/ui/app/first-time/init-menu.js index 21ddc2800..bd6541dd4 100644 --- a/ui/app/first-time/init-menu.js +++ b/ui/app/first-time/init-menu.js @@ -20,6 +20,7 @@ function mapStateToProps (state) { return { // state from plugin currentView: state.appState.currentView, + warning: state.appState.warning, } } @@ -29,7 +30,7 @@ InitializeMenuScreen.prototype.render = function () { switch (state.currentView.name) { default: - return this.renderMenu() + return this.renderMenu(state) } } @@ -38,7 +39,7 @@ InitializeMenuScreen.prototype.render = function () { // document.getElementById('password-box').focus() // } -InitializeMenuScreen.prototype.renderMenu = function () { +InitializeMenuScreen.prototype.renderMenu = function (state) { return ( h('.initialize-screen.flex-column.flex-center.flex-grow', [ @@ -116,6 +117,10 @@ InitializeMenuScreen.prototype.renderMenu = function () { }, }, 'Create'), + (!state.inProgress && state.warning) && ( + h('span.in-progress-notification', state.warning) + ), + /* h('.flex-row.flex-center.flex-grow', [ h('p.pointer', { |