not supported message

This commit is contained in:
Javier 2016-06-30 15:59:57 -03:00
commit 1e5ecf070c
2 changed files with 9 additions and 2 deletions

View file

@ -45,13 +45,17 @@
</div>
</form>
<div class="m20t text-gray" ng-show="exportQR">
<div class="m20t text-gray" ng-show="exportQR && supported">
<div class="text-center m20b">
<qrcode size="220" version="8" error-correction-level="M" data="{{exportWalletInfo}}"></qrcode>
</div>
<div class="text-center size-12 m10" translate>From the destination device, go to Add wallet > Import wallet and scan this QR code</div>
</div>
<div class="m20t text-gray" ng-show="exportQR && !supported">
<div class="text-center size-12 m10" translate>Exporting via QR not supported for this wallet</div>
</div>
<div class="row" ng-show="!exportQR && index.canSign">
<div class="columns m15t">
<a class="button outline light-gray expand tiny p10i" ng-click="showAdvanced = !showAdvanced">

View file

@ -12,6 +12,7 @@ angular.module('copayApp.controllers').controller('exportController',
$scope.error = null;
$scope.init = function(state) {
$scope.supported = true;
$scope.exportQR = false;
$scope.noSignEnabled = false;
$scope.showAdvanced = false;
@ -74,7 +75,9 @@ angular.module('copayApp.controllers').controller('exportController',
};
var info;
if (c.canSign() && !$scope.noSignEnabled) {
$scope.supported = (c.derivationStrategy == 'BIP44' && c.canSign());
if ($scope.supported) {
if (c.mnemonic) {
info = {
type: encodingType.mnemonic,