mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add password warning div.
This commit is contained in:
parent
2418197041
commit
02b0cf2e6d
@ -20,6 +20,7 @@ function mapStateToProps (state) {
|
|||||||
return {
|
return {
|
||||||
// state from plugin
|
// state from plugin
|
||||||
currentView: state.appState.currentView,
|
currentView: state.appState.currentView,
|
||||||
|
warning: state.appState.warning,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ InitializeMenuScreen.prototype.render = function () {
|
|||||||
switch (state.currentView.name) {
|
switch (state.currentView.name) {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return this.renderMenu()
|
return this.renderMenu(state)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -38,7 +39,7 @@ InitializeMenuScreen.prototype.render = function () {
|
|||||||
// document.getElementById('password-box').focus()
|
// document.getElementById('password-box').focus()
|
||||||
// }
|
// }
|
||||||
|
|
||||||
InitializeMenuScreen.prototype.renderMenu = function () {
|
InitializeMenuScreen.prototype.renderMenu = function (state) {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
h('.initialize-screen.flex-column.flex-center.flex-grow', [
|
h('.initialize-screen.flex-column.flex-center.flex-grow', [
|
||||||
@ -116,6 +117,10 @@ InitializeMenuScreen.prototype.renderMenu = function () {
|
|||||||
},
|
},
|
||||||
}, 'Create'),
|
}, 'Create'),
|
||||||
|
|
||||||
|
(!state.inProgress && state.warning) && (
|
||||||
|
h('span.in-progress-notification', state.warning)
|
||||||
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
h('.flex-row.flex-center.flex-grow', [
|
h('.flex-row.flex-center.flex-grow', [
|
||||||
h('p.pointer', {
|
h('p.pointer', {
|
||||||
|
Loading…
Reference in New Issue
Block a user