Browse Source

disable full mode on win

all-modes
pbca26 8 years ago
parent
commit
74e0d01c93
  1. 52
      react/src/components/addcoin/addcoinOptionsCrypto.js
  2. 17
      react/src/components/addcoin/coin-selectors.render.js

52
react/src/components/addcoin/addcoinOptionsCrypto.js

@ -11,24 +11,50 @@ class AddCoinOptionsCrypto extends React.Component {
} }
render() { render() {
const isWindows = this.props.appSettings && this.props.appSettings.appInfo && this.props.appSettings.appInfo.sysInfo && this.props.appSettings.appInfo.sysInfo.platform === 'win32';
//<option value="ANC|full">AnonCoin (ANC)</option> //<option value="ANC|full">AnonCoin (ANC)</option>
//<option value="MZC|full">MazaCoin (MZC)</option> //<option value="MZC|full">MazaCoin (MZC)</option>
//<option value="SYS|full">SysCoin (SYS)</option> //<option value="SYS|full">SysCoin (SYS)</option>
return ( return (
<optgroup label="Crypto Currencies"> <optgroup label={ translate('ADD_COIN.CRYPTO_CURRENCIES') }>
<option value="BTCD|full" className={ this.state.nativeOnly ? 'hide' : '' }>BitcoinDark (BTCD)</option> <option
<option value="BTC|full|basilisk" className={ this.state.nativeOnly ? 'hide' : '' }>Bitcoin (BTC)</option> value="BTCD|full"
<option value="BTM|full" className={ this.state.nativeOnly ? 'hide' : '' }>Bitmark (BTM)</option> className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>BitcoinDark (BTCD)</option>
<option value="CARB|full" className={ this.state.nativeOnly ? 'hide' : '' }>Carboncoin (CARB)</option> <option
<option value="DGB|full" className={ this.state.nativeOnly ? 'hide' : '' }>Digibyte (DGB)</option> value="BTC|full"
<option value="DOGE|full" className={ this.state.nativeOnly ? 'hide' : '' }>Dogecoin (DOGE)</option> className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Bitcoin (BTC)</option>
<option value="FRK|full" className={ this.state.nativeOnly ? 'hide' : '' }>Franko (FRK)</option> <option
<option value="GAME|full" className={ this.state.nativeOnly ? 'hide' : '' }>Gamecredits (GAME)</option> value="BTM|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Bitmark (BTM)</option>
<option
value="CARB|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Carboncoin (CARB)</option>
<option
value="DGB|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Digibyte (DGB)</option>
<option
value="DOGE|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Dogecoin (DOGE)</option>
<option
value="FRK|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Franko (FRK)</option>
<option
value="GAME|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Gamecredits (GAME)</option>
<option value="KMD|basilisk|native">Komodo (KMD)</option> <option value="KMD|basilisk|native">Komodo (KMD)</option>
<option value="LTC|full" className={ this.state.nativeOnly ? 'hide' : '' }>Litecoin (LTC)</option> <option
<option value="UNO|full" className={ this.state.nativeOnly ? 'hide' : '' }>Unobtanium (UNO)</option> value="LTC|full"
<option value="ZEC|full" className={ this.state.nativeOnly ? 'hide' : '' }>Zcash (ZEC)</option> className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Litecoin (LTC)</option>
<option value="ZET|full" className={ this.state.nativeOnly ? 'hide' : '' }>Zetacoin (ZET)</option> <option
value="UNO|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Unobtanium (UNO)</option>
<option
value="ZEC|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Zcash (ZEC)</option>
<option
value="ZET|full"
className={ this.state.nativeOnly || isWindows ? 'hide' : '' }>Zetacoin (ZET)</option>
</optgroup> </optgroup>
); );
} }

17
react/src/components/addcoin/coin-selectors.render.js

@ -5,6 +5,9 @@ import AddCoinOptionsAC from '../addcoin/addcoinOptionsAC';
import AddCoinOptionsACFiat from '../addcoin/addcoinOptionsACFiat'; import AddCoinOptionsACFiat from '../addcoin/addcoinOptionsACFiat';
const CoinSelectorsRender = function(item, coin, i) { const CoinSelectorsRender = function(item, coin, i) {
const isWindows = this.props.Settings && this.props.Settings.appInfo && this.props.Settings.appInfo.sysInfo && this.props.Settings.appInfo.sysInfo.platform === 'win32';
console.log(isWindows);
return ( return (
<div <div
className={ this.hasMoreThanOneCoin() ? 'multi' : 'single' } className={ this.hasMoreThanOneCoin() ? 'multi' : 'single' }
@ -18,9 +21,9 @@ const CoinSelectorsRender = function(item, coin, i) {
onChange={ (event) => this.updateSelectedCoin(event, i) } onChange={ (event) => this.updateSelectedCoin(event, i) }
autoFocus> autoFocus>
<option>{ translate('INDEX.SELECT') }</option> <option>{ translate('INDEX.SELECT') }</option>
<AddCoinOptionsCrypto /> <AddCoinOptionsCrypto appSettings={ this.props.Settings } />
<AddCoinOptionsAC /> <AddCoinOptionsAC appSettings={ this.props.Settings } />
<AddCoinOptionsACFiat /> <AddCoinOptionsACFiat appSettings={ this.props.Settings } />
</select> </select>
</div> </div>
</div> </div>
@ -33,8 +36,8 @@ const CoinSelectorsRender = function(item, coin, i) {
{ translate('INDEX.ACTIVATE_COIN') } { translate('INDEX.ACTIVATE_COIN') }
</button> </button>
</div> </div>
<div className="col-sm-12 text-center"> <div className="col-sm-11 text-center add-coin-modes">
<div className={ this.state.nativeOnly ? 'hide' : 'form-group col-lg-4 col-md-4 col-sm-6 col-xs-6 style-addcoin-lbl-mdl-login' }> <div className={ this.state.nativeOnly || isWindows ? 'hide' : 'form-group col-lg-4 col-md-4 col-sm-6 col-xs-6 style-addcoin-lbl-mdl-login' }>
<input <input
type="radio" type="radio"
className="to-labelauty labelauty" className="to-labelauty labelauty"
@ -94,7 +97,9 @@ const CoinSelectorsRender = function(item, coin, i) {
</span> </span>
</label> </label>
</div> </div>
<div className="form-group col-lg-4 col-md-4 col-sm-6 col-xs-6" style={{ paddingLeft: this.state.nativeOnly ? '0' : 'inherit' }}> <div
className="form-group col-lg-4 col-md-4 col-sm-6 col-xs-6"
style={{ paddingLeft: this.state.nativeOnly ? '0' : 'inherit' }}>
<input <input
type="radio" type="radio"
className="to-labelauty labelauty" className="to-labelauty labelauty"

Loading…
Cancel
Save