|
|
@ -8,14 +8,13 @@ import AddCoinOptionsACFiat from '../addcoin/addcoinOptionsACFiat'; |
|
|
|
const CoinSelectorsRender = function(item, coin, i) { |
|
|
|
return ( |
|
|
|
<div |
|
|
|
className={ this.hasMoreThanOneCoin() > 1 ? 'multi' : 'single' } |
|
|
|
className={ this.hasMoreThanOneCoin() ? 'multi' : 'single' } |
|
|
|
key={ `add-coin-${i}` }> |
|
|
|
<div className="col-sm-8"> |
|
|
|
<div className="form-group"> |
|
|
|
<select |
|
|
|
className="form-control form-material" |
|
|
|
name="selectedCoin" |
|
|
|
id="addcoin_select_coin_mdl_options-login" |
|
|
|
value={ coin } |
|
|
|
onChange={ (event) => this.updateSelectedCoin(event, i) } |
|
|
|
autoFocus> |
|
|
@ -29,8 +28,7 @@ const CoinSelectorsRender = function(item, coin, i) { |
|
|
|
<div className={ this.hasMoreThanOneCoin() ? 'hide' : 'col-sm-4' }> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
className="btn btn-primary mdl_addcoin_done_btn-login" |
|
|
|
id="mdl_addcoin_done_btn-login" |
|
|
|
className="btn btn-primary" |
|
|
|
onClick={ () => this.activateCoin(i) } |
|
|
|
disabled={ item.mode === -2 }>{ translate('INDEX.ACTIVATE_COIN') }</button> |
|
|
|
</div> |
|
|
@ -42,23 +40,23 @@ const CoinSelectorsRender = function(item, coin, i) { |
|
|
|
name={ `mode-${i}` } |
|
|
|
id={ `addcoin_mdl_full_mode_login-${i}` } |
|
|
|
disabled={ item.fullMode.disabled } |
|
|
|
checked={ item.fullMode.checked }/> |
|
|
|
checked={ item.fullMode.checked } /> |
|
|
|
<label |
|
|
|
htmlFor={ `addcoin_mdl_full_mode_login-${i}` } |
|
|
|
onClick={ () => this.updateSelectedMode('1', i) } |
|
|
|
style={{pointerEvents: item.fullMode.disabled ? 'none' : 'all'}}> |
|
|
|
style={{ pointerEvents: item.fullMode.disabled ? 'none' : 'all' }}> |
|
|
|
<span |
|
|
|
className="labelauty-unchecked-image" |
|
|
|
style={{display: item.fullMode.checked ? 'none' : 'inline-block'}}></span> |
|
|
|
style={{ display: item.fullMode.checked ? 'none' : 'inline-block' }}></span> |
|
|
|
<span |
|
|
|
className="labelauty-unchecked" |
|
|
|
style={{display: item.fullMode.checked ? 'none' : 'inline-block'}}>{ translate('INDEX.FULL_MODE') }</span> |
|
|
|
style={{ display: item.fullMode.checked ? 'none' : 'inline-block' }}>{ translate('INDEX.FULL_MODE') }</span> |
|
|
|
<span |
|
|
|
className="labelauty-checked-image" |
|
|
|
style={{display: item.fullMode.checked ? 'inline-block' : 'none'}}></span> |
|
|
|
style={{ display: item.fullMode.checked ? 'inline-block' : 'none' }}></span> |
|
|
|
<span |
|
|
|
className="labelauty-checked" |
|
|
|
style={{display: item.fullMode.checked ? 'inline-block' : 'none'}}>{ translate('INDEX.FULL_MODE') }</span> |
|
|
|
style={{ display: item.fullMode.checked ? 'inline-block' : 'none' }}>{ translate('INDEX.FULL_MODE') }</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
<div className="form-group col-lg-4 col-md-4 col-sm-6 col-xs-6 style-addcoin-lbl-mdl-login"> |
|
|
@ -68,23 +66,23 @@ const CoinSelectorsRender = function(item, coin, i) { |
|
|
|
name={ `mode-${i}` } |
|
|
|
id={ `addcoin_mdl_basilisk_mode_login-${i}` } |
|
|
|
disabled={ item.basiliskMode.disabled } |
|
|
|
checked={ item.basiliskMode.checked }/> |
|
|
|
checked={ item.basiliskMode.checked } /> |
|
|
|
<label |
|
|
|
htmlFor={ `addcoin_mdl_basilisk_mode_login-${i}` } |
|
|
|
onClick={ () => this.updateSelectedMode('0', i) } |
|
|
|
style={{pointerEvents: item.basiliskMode.disabled ? 'none' : 'all'}}> |
|
|
|
style={{ pointerEvents: item.basiliskMode.disabled ? 'none' : 'all' }}> |
|
|
|
<span |
|
|
|
className="labelauty-unchecked-image" |
|
|
|
style={{display: item.basiliskMode.checked ? 'none' : 'inline-block'}}></span> |
|
|
|
style={{ display: item.basiliskMode.checked ? 'none' : 'inline-block' }}></span> |
|
|
|
<span |
|
|
|
className="labelauty-unchecked" |
|
|
|
style={{display: item.basiliskMode.checked ? 'none' : 'inline-block'}}>{ translate('INDEX.BASILISK_MODE') }</span> |
|
|
|
style={{ display: item.basiliskMode.checked ? 'none' : 'inline-block' }}>{ translate('INDEX.BASILISK_MODE') }</span> |
|
|
|
<span |
|
|
|
className="labelauty-checked-image" |
|
|
|
style={{display: item.basiliskMode.checked ? 'inline-block' : 'none'}}></span> |
|
|
|
style={{ display: item.basiliskMode.checked ? 'inline-block' : 'none' }}></span> |
|
|
|
<span |
|
|
|
className="labelauty-checked" |
|
|
|
style={{display: item.basiliskMode.checked ? 'inline-block' : 'none'}}>{ translate('INDEX.BASILISK_MODE') }</span> |
|
|
|
style={{ display: item.basiliskMode.checked ? 'inline-block' : 'none' }}>{ translate('INDEX.BASILISK_MODE') }</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
<div className="form-group col-lg-4 col-md-4 col-sm-12 col-xs-12 style-addcoin-lbl-mdl-login"> |
|
|
@ -94,31 +92,30 @@ const CoinSelectorsRender = function(item, coin, i) { |
|
|
|
name={ `mode-${i}` } |
|
|
|
id={ `addcoin_mdl_native_mode_login-${i}` } |
|
|
|
disabled={ item.nativeMode.disabled } |
|
|
|
checked={ item.nativeMode.checked }/> |
|
|
|
checked={ item.nativeMode.checked } /> |
|
|
|
<label |
|
|
|
htmlFor={ `addcoin_mdl_native_mode_login-${i}` } |
|
|
|
onClick={ () => this.updateSelectedMode('-1', i) } |
|
|
|
style={{pointerEvents: item.nativeMode.disabled ? 'none' : 'all'}}> |
|
|
|
style={{ pointerEvents: item.nativeMode.disabled ? 'none' : 'all' }}> |
|
|
|
<span |
|
|
|
className="labelauty-unchecked-image" |
|
|
|
style={{display: item.nativeMode.checked ? 'none' : 'inline-block'}}></span> |
|
|
|
style={{ display: item.nativeMode.checked ? 'none' : 'inline-block' }}></span> |
|
|
|
<span |
|
|
|
className="labelauty-unchecked" |
|
|
|
style={{display: item.nativeMode.checked ? 'none' : 'inline-block'}}>{ translate('INDEX.NATIVE_MODE') }</span> |
|
|
|
style={{ display: item.nativeMode.checked ? 'none' : 'inline-block' }}>{ translate('INDEX.NATIVE_MODE') }</span> |
|
|
|
<span |
|
|
|
className="labelauty-checked-image" |
|
|
|
style={{display: item.nativeMode.checked ? 'inline-block' : 'none'}}></span> |
|
|
|
style={{ display: item.nativeMode.checked ? 'inline-block' : 'none' }}></span> |
|
|
|
<span |
|
|
|
className="labelauty-checked" |
|
|
|
style={{display: item.nativeMode.checked ? 'inline-block' : 'none'}}>{ translate('INDEX.NATIVE_MODE') }</span> |
|
|
|
style={{ display: item.nativeMode.checked ? 'inline-block' : 'none' }}>{ translate('INDEX.NATIVE_MODE') }</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className={ this.hasMoreThanOneCoin() && i !== 0 ? 'col-sm-1' : 'hide' }> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
className="btn btn-primary mdl_addcoin_done_btn-login" |
|
|
|
id="mdl_addcoin_done_btn-login" |
|
|
|
className="btn btn-primary" |
|
|
|
onClick={ () => this.removeCoin(i) }> |
|
|
|
<i className="fa fa-trash-o"></i> |
|
|
|
</button> |
|
|
@ -127,11 +124,10 @@ const CoinSelectorsRender = function(item, coin, i) { |
|
|
|
<div className="toggle-box padding-top-3 padding-bottom-10"> |
|
|
|
<span className="pointer"> |
|
|
|
<label className="switch"> |
|
|
|
<input type="checkbox" checked={ item.syncOnly }/> |
|
|
|
<input type="checkbox" checked={ item.syncOnly } /> |
|
|
|
<div className="slider" onClick={ () => this.toggleSyncOnlyMode(i) }></div> |
|
|
|
</label> |
|
|
|
<div className="toggle-label" |
|
|
|
onClick={ () => this.toggleSyncOnlyMode(i) }>{ translate('ADD_COIN.SYNC_ONLY') }</div> |
|
|
|
<div className="toggle-label" onClick={ () => this.toggleSyncOnlyMode(i) }>{ translate('ADD_COIN.SYNC_ONLY') }</div> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|