|
|
@ -104,28 +104,36 @@ export const TxHistoryListRender = function(tx, index) { |
|
|
|
}; |
|
|
|
|
|
|
|
export const AddressListRender = function() { |
|
|
|
return ( |
|
|
|
<div className={ `btn-group bootstrap-select form-control form-material showkmdwalletaddrs show-tick ${(this.state.addressSelectorOpen ? 'open' : '')}` }> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
className="btn dropdown-toggle btn-info" |
|
|
|
title={ `-${translate('KMD_NATIVE.SELECT_ADDRESS')}-` } |
|
|
|
onClick={ this.openDropMenu }> |
|
|
|
<span className="filter-option pull-left">{ this.renderSelectorCurrentLabel() } </span> |
|
|
|
<span className="bs-caret"> |
|
|
|
<span className="caret"></span> |
|
|
|
</span> |
|
|
|
</button> |
|
|
|
<div className="dropdown-menu open"> |
|
|
|
<ul className="dropdown-menu inner"> |
|
|
|
<li className="selected"> |
|
|
|
<a><span className="text"> - { translate('KMD_NATIVE.SELECT_ADDRESS') } - </span><span className="glyphicon glyphicon-ok check-mark"></span></a> |
|
|
|
</li> |
|
|
|
{ this.renderAddressByType('public') } |
|
|
|
</ul> |
|
|
|
const isMultiPublicAddress = this.props.ActiveCoin.addresses.public && this.props.ActiveCoin.addresses.public.length > 1; |
|
|
|
const isMultiPrivateAddress = this.props.ActiveCoin.addresses.private && this.props.ActiveCoin.addresses.private.length > 1; |
|
|
|
|
|
|
|
if (isMultiPublicAddress || |
|
|
|
isMultiPrivateAddress) { |
|
|
|
return ( |
|
|
|
<div className={ `btn-group bootstrap-select form-control form-material showkmdwalletaddrs show-tick ${(this.state.addressSelectorOpen ? 'open' : '')}` }> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
className="btn dropdown-toggle btn-info" |
|
|
|
title={ `-${translate('KMD_NATIVE.SELECT_ADDRESS')}-` } |
|
|
|
onClick={ this.openDropMenu }> |
|
|
|
<span className="filter-option pull-left">{ this.renderSelectorCurrentLabel() } </span> |
|
|
|
<span className="bs-caret"> |
|
|
|
<span className="caret"></span> |
|
|
|
</span> |
|
|
|
</button> |
|
|
|
<div className="dropdown-menu open"> |
|
|
|
<ul className="dropdown-menu inner"> |
|
|
|
<li className="selected"> |
|
|
|
<a><span className="text"> - { translate('KMD_NATIVE.SELECT_ADDRESS') } - </span><span className="glyphicon glyphicon-ok check-mark"></span></a> |
|
|
|
</li> |
|
|
|
{ this.renderAddressByType('public') } |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
} else { |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
export const WalletsDataRender = function() { |
|
|
|