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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="m20t text-gray" ng-show="exportQR">
|
<div class="m20t text-gray" ng-show="exportQR && supported">
|
||||||
<div class="text-center m20b">
|
<div class="text-center m20b">
|
||||||
<qrcode size="220" version="8" error-correction-level="M" data="{{exportWalletInfo}}"></qrcode>
|
<qrcode size="220" version="8" error-correction-level="M" data="{{exportWalletInfo}}"></qrcode>
|
||||||
</div>
|
</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 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>
|
||||||
|
|
||||||
|
<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="row" ng-show="!exportQR && index.canSign">
|
||||||
<div class="columns m15t">
|
<div class="columns m15t">
|
||||||
<a class="button outline light-gray expand tiny p10i" ng-click="showAdvanced = !showAdvanced">
|
<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.error = null;
|
||||||
|
|
||||||
$scope.init = function(state) {
|
$scope.init = function(state) {
|
||||||
|
$scope.supported = true;
|
||||||
$scope.exportQR = false;
|
$scope.exportQR = false;
|
||||||
$scope.noSignEnabled = false;
|
$scope.noSignEnabled = false;
|
||||||
$scope.showAdvanced = false;
|
$scope.showAdvanced = false;
|
||||||
|
|
@ -74,7 +75,9 @@ angular.module('copayApp.controllers').controller('exportController',
|
||||||
};
|
};
|
||||||
var info;
|
var info;
|
||||||
|
|
||||||
if (c.canSign() && !$scope.noSignEnabled) {
|
$scope.supported = (c.derivationStrategy == 'BIP44' && c.canSign());
|
||||||
|
|
||||||
|
if ($scope.supported) {
|
||||||
if (c.mnemonic) {
|
if (c.mnemonic) {
|
||||||
info = {
|
info = {
|
||||||
type: encodingType.mnemonic,
|
type: encodingType.mnemonic,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue