Browse Source

hide auth ui in native only mode

all-modes
pbca26 8 years ago
parent
commit
3edb770a9f
  1. 2
      react/src/components/login/login.js
  2. 7
      react/src/components/login/login.render.js

2
react/src/components/login/login.js

@ -1,5 +1,6 @@
import React from 'react';
import {
Config,
toggleAddcoinModal,
iguanaWalletPassphrase,
iguanaActiveHandle,
@ -36,6 +37,7 @@ class Login extends React.Component {
displaySeedBackupModal: false,
customWalletSeed: false,
isCustomSeedWeak: false,
nativeOnly: Config.iguanaLessMode,
};
this.toggleActivateCoinForm = this.toggleActivateCoinForm.bind(this);
this.updateRegisterConfirmPassPhraseInput = this.updateRegisterConfirmPassPhraseInput.bind(this);

7
react/src/components/login/login.render.js

@ -16,7 +16,7 @@ const LoginRender = function () {
alt="SuperNET Iguana" />
</div>
<div className="vertical-padding-20 horizontal-padding-0">
<div className={ this.state.nativeOnly ? 'hide' : 'vertical-padding-20 horizontal-padding-0' }>
<span
className="display-sync-only-coins-toggle"
onClick={ this.openSyncOnlyModal }>
@ -54,7 +54,7 @@ const LoginRender = function () {
</div>
</div>
<div className={ this.state.activeLoginSection === 'login' ? 'show' : 'hide' }>
<div className={ this.state.activeLoginSection === 'login' && !this.state.nativeOnly ? 'show' : 'hide' }>
<h4 className="color-white">
{translate('INDEX.WELCOME_LOGIN')}
</h4>
@ -84,8 +84,7 @@ const LoginRender = function () {
type="button"
className="btn btn-primary btn-block"
onClick={ this.loginSeed }
disabled={ !this.state.loginPassphrase
|| !this.state.loginPassphrase.length }>{ translate('INDEX.SIGN_IN') }</button>
disabled={ !this.state.loginPassphrase || !this.state.loginPassphrase.length }>{ translate('INDEX.SIGN_IN') }</button>
<div className="form-group form-material floating">
<button
className="btn btn-lg btn-flat btn-block waves-effect"

Loading…
Cancel
Save