diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-07-19 02:05:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 02:05:19 +0800 |
commit | 199587383b022a17d56adcb56d6a99ceba71fec7 (patch) | |
tree | f66c331820ef10fa6e61df8e2d8c129d70c8cc4c /ui/responsive/app/components/editable-label.js | |
parent | 1e0cd5f3028619d088fedf4cdb1b4a7cb81f9cf1 (diff) | |
parent | 9e8e445695585f47e9cc3f63b2ec8313b4fc4eb8 (diff) | |
download | tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.gz tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.bz2 tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.lz tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.xz tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.zst tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.zip |
Merge pull request #1790 from sdtsui/newui-account-dropdowns
[newui] - Implement Advanced Option Menu & Account Switching Menu
Diffstat (limited to 'ui/responsive/app/components/editable-label.js')
-rw-r--r-- | ui/responsive/app/components/editable-label.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/responsive/app/components/editable-label.js b/ui/responsive/app/components/editable-label.js index 41936f5e0..167be7eaf 100644 --- a/ui/responsive/app/components/editable-label.js +++ b/ui/responsive/app/components/editable-label.js @@ -30,7 +30,12 @@ EditableLabel.prototype.render = function () { } else { return h('div.name-label', { onClick: (event) => { - this.setState({ isEditingLabel: true }) + const nameAttribute = event.target.getAttribute('name') + // checks for class to handle smaller CTA above the account name + const classAttribute = event.target.getAttribute('class') + if (nameAttribute === 'edit' || classAttribute === 'edit-text') { + this.setState({ isEditingLabel: true }) + } }, }, this.props.children) } |