diff --git a/app/partials/settings/info.pug b/app/partials/settings/info.pug index 841a309632..b4168abad0 100644 --- a/app/partials/settings/info.pug +++ b/app/partials/settings/info.pug @@ -43,7 +43,7 @@ span(ng-show="pairingCode") qr(text="pairingCode" size="180" image="true") - .form-group.mbn.border-bottom.clearfix.pvl(data-preflight-tag="MewSweep") + .form-group.mbn.border-bottom.clearfix.pvl(data-preflight-tag="MewSweep" ng-show="showMew") .col-sm-12.col-md-6 label.em-400.type-h5(translate="MEW.import_funds_mew") p.alt-font.f-16.em-300 diff --git a/assets/js/controllers/settings/info.controller.js b/assets/js/controllers/settings/info.controller.js index ce1d0a4d6f..212ea6313c 100644 --- a/assets/js/controllers/settings/info.controller.js +++ b/assets/js/controllers/settings/info.controller.js @@ -2,12 +2,16 @@ angular .module('walletApp') .controller('SettingsInfoCtrl', SettingsInfoCtrl); -function SettingsInfoCtrl ($scope, $q, modals, Wallet, Alerts, MyWallet) { +function SettingsInfoCtrl ($scope, $q, modals, Wallet, Alerts, MyWallet, Env) { angular.extend($scope, Wallet.user); $scope.loading = {}; $scope.pairingCode = null; $scope.showMewSweep = modals.showMewSweep; + Env.then((env) => { + $scope.showMew = env.ethereum.mew; + }); + $scope.removeAlias = () => { $scope.loading.alias = true; Alerts.confirm('CONFIRM_REMOVE_ALIAS', { props: { 'UID': $scope.guid } }) diff --git a/rootApp/Resources/wallet-options.json b/rootApp/Resources/wallet-options.json index dfd43192ef..74f32d485d 100644 --- a/rootApp/Resources/wallet-options.json +++ b/rootApp/Resources/wallet-options.json @@ -74,6 +74,7 @@ "walletHelperUrl": "REPLACED_BY_DEV_SERVER" }, "ethereum": { + "mew": true, "countries": "*", "lastTxFuse": 600, "rolloutFraction": 1,