not supported message
This commit is contained in:
parent
132a5a3efb
commit
1e5ecf070c
2 changed files with 9 additions and 2 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue