From 8cb795d0735d2185fe48e19828ca9c64705b9d54 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 17 Apr 2017 10:47:23 +0300 Subject: [PATCH] show/hide full send/receive ui --- react/src/components/dashboard/walletsBalance.js | 4 ++-- react/src/components/dashboard/walletsData.js | 2 +- react/src/components/dashboard/walletsNav.js | 2 +- react/src/components/dashboard/walletsProgress.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/react/src/components/dashboard/walletsBalance.js b/react/src/components/dashboard/walletsBalance.js index d246698..5bc1a47 100644 --- a/react/src/components/dashboard/walletsBalance.js +++ b/react/src/components/dashboard/walletsBalance.js @@ -3,7 +3,7 @@ import { translate } from '../../translate/translate'; class WalletsBalance extends React.Component { render() { - if (this.props && this.props.coin && this.props.mode !== 'native') { + if (this.props && this.props.coin && this.props.mode !== 'native' && !this.props.send && !this.props.receive) { return (
@@ -65,7 +65,7 @@ class WalletsBalance extends React.Component {
-
+
{translate('INDEX.TOTAL_BALANCE')} diff --git a/react/src/components/dashboard/walletsData.js b/react/src/components/dashboard/walletsData.js index 5dcca0b..d3dfc85 100644 --- a/react/src/components/dashboard/walletsData.js +++ b/react/src/components/dashboard/walletsData.js @@ -89,7 +89,7 @@ class WalletsData extends React.Component { } render() { - if (this.props && this.props.ActiveCoin && this.props.ActiveCoin.coin && this.props.ActiveCoin.mode !== 'native') { + if (this.props && this.props.ActiveCoin && this.props.ActiveCoin.coin && this.props.ActiveCoin.mode !== 'native' && !this.props.ActiveCoin.send && !this.props.ActiveCoin.receive) { return (
diff --git a/react/src/components/dashboard/walletsNav.js b/react/src/components/dashboard/walletsNav.js index b30c428..ab50627 100644 --- a/react/src/components/dashboard/walletsNav.js +++ b/react/src/components/dashboard/walletsNav.js @@ -67,7 +67,7 @@ class WalletsNav extends React.Component { } else { return (
-
+
    {translate('INDEX.MY')} {this.props && this.props.ActiveCoin ? this.props.ActiveCoin.coin : '-'} {translate('INDEX.ADDRESS')}: {this.props && this.props.Dashboard && this.props.Dashboard.activeHandle ? this.props.Dashboard.activeHandle[this.props.ActiveCoin.coin] : '-'}
diff --git a/react/src/components/dashboard/walletsProgress.js b/react/src/components/dashboard/walletsProgress.js index 477ae97..8815e49 100644 --- a/react/src/components/dashboard/walletsProgress.js +++ b/react/src/components/dashboard/walletsProgress.js @@ -8,7 +8,7 @@ class WalletsProgress extends React.Component { return (
Coin is busy processing
); } else { return ( -