Revert Double Click (#4590)

This commit is contained in:
Nicolas Gotchac 2017-02-17 18:11:10 +01:00 committed by Gav Wood
parent 39237e9d15
commit 04f3ee90d8

View File

@ -345,21 +345,16 @@ class ParityBar extends Component {
renderAccount = (account) => { renderAccount = (account) => {
const makeDefaultAccount = () => { const makeDefaultAccount = () => {
this.toggleAccountsDisplay();
return this.accountStore return this.accountStore
.makeDefaultAccount(account.address) .makeDefaultAccount(account.address)
.then(() => this.accountStore.loadAccounts()); .then(() => this.accountStore.loadAccounts());
}; };
const onDoubleClick = () => {
this.toggleAccountsDisplay();
makeDefaultAccount();
};
return ( return (
<div <div
className={ styles.account } className={ styles.account }
onClick={ makeDefaultAccount } onClick={ makeDefaultAccount }
onDoubleClick={ onDoubleClick }
> >
<AccountCard <AccountCard
account={ account } account={ account }