Skip to content

Commit

Permalink
Merge pull request #232 from poanetwork/execute-button
Browse files Browse the repository at this point in the history
(Fix) Execute methods button
  • Loading branch information
vbaranov authored Dec 26, 2018
2 parents 6094d02 + dd109d9 commit dca7c49
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 74 deletions.
6 changes: 3 additions & 3 deletions old-ui/app/account-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ AccountDetailScreen.prototype.render = function () {

h('.flex-grow'),

h('button', {
!ifContractAcc(currentKeyring) ? h('button', {
onClick: () => props.dispatch(actions.buyEthView(selected)),
style: { marginRight: '10px' },
}, 'Buy'),
}, 'Buy') : null,

h('button', {
onClick: () => {
Expand All @@ -228,7 +228,7 @@ AccountDetailScreen.prototype.render = function () {
return props.dispatch(actions.showSendPage())
}
},
}, 'Send'),
}, ifContractAcc(currentKeyring) ? 'Execute methods' : 'Send'),

]),
]),
Expand Down
Loading

0 comments on commit dca7c49

Please sign in to comment.