disable only for copay distribution
This commit is contained in:
parent
06ebb10e9a
commit
3102e6ffbb
4 changed files with 38 additions and 31 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('createController',
|
angular.module('copayApp.controllers').controller('createController',
|
||||||
function($scope, $rootScope, $timeout, $log, lodash, $state, $ionicScrollDelegate, $ionicHistory, profileService, configService, gettextCatalog, ledger, trezor, platformInfo, derivationPathHelper, ongoingProcess, walletService, storageService, popupService) {
|
function($scope, $rootScope, $timeout, $log, lodash, $state, $ionicScrollDelegate, $ionicHistory, profileService, configService, gettextCatalog, ledger, trezor, platformInfo, derivationPathHelper, ongoingProcess, walletService, storageService, popupService, $window) {
|
||||||
|
|
||||||
var isChromeApp = platformInfo.isChromeApp;
|
var isChromeApp = platformInfo.isChromeApp;
|
||||||
var isCordova = platformInfo.isCordova;
|
var isCordova = platformInfo.isCordova;
|
||||||
|
|
@ -33,7 +33,6 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
$scope.formData.derivationPath = derivationPathHelper.default;
|
$scope.formData.derivationPath = derivationPathHelper.default;
|
||||||
$scope.setTotalCopayers(tc);
|
$scope.setTotalCopayers(tc);
|
||||||
updateRCSelect(tc);
|
updateRCSelect(tc);
|
||||||
updateSeedSourceSelect(tc);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.showAdvChange = function() {
|
$scope.showAdvChange = function() {
|
||||||
|
|
@ -77,21 +76,25 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Disable Hardware Wallets
|
Disable Hardware Wallets for BitPay distribution
|
||||||
|
|
||||||
if (n > 1 && isChromeApp) {
|
|
||||||
seedOptions.push({
|
|
||||||
id: 'ledger',
|
|
||||||
label: 'Ledger Hardware Wallet',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (isChromeApp || isDevel) {
|
|
||||||
seedOptions.push({
|
|
||||||
id: 'trezor',
|
|
||||||
label: 'Trezor Hardware Wallet',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ($window.appConfig.name == 'copay') {
|
||||||
|
if (n > 1 && isChromeApp) {
|
||||||
|
seedOptions.push({
|
||||||
|
id: 'ledger',
|
||||||
|
label: 'Ledger Hardware Wallet',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (isChromeApp || isDevel) {
|
||||||
|
seedOptions.push({
|
||||||
|
id: 'trezor',
|
||||||
|
label: 'Trezor Hardware Wallet',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.seedOptions = seedOptions;
|
$scope.seedOptions = seedOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('importController',
|
angular.module('copayApp.controllers').controller('importController',
|
||||||
function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupService, gettextCatalog) {
|
function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupService, gettextCatalog, $window) {
|
||||||
|
|
||||||
var isChromeApp = platformInfo.isChromeApp;
|
var isChromeApp = platformInfo.isChromeApp;
|
||||||
var isDevel = platformInfo.isDevel;
|
var isDevel = platformInfo.isDevel;
|
||||||
|
|
@ -17,6 +17,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
$scope.formData.derivationPath = derivationPathHelper.default;
|
$scope.formData.derivationPath = derivationPathHelper.default;
|
||||||
$scope.formData.account = 1;
|
$scope.formData.account = 1;
|
||||||
$scope.importErr = false;
|
$scope.importErr = false;
|
||||||
|
$scope.showHardwareWallet = $window.appConfig.name == 'copay';
|
||||||
|
|
||||||
if ($stateParams.code)
|
if ($stateParams.code)
|
||||||
$scope.processWalletInfo($stateParams.code);
|
$scope.processWalletInfo($stateParams.code);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('joinController',
|
angular.module('copayApp.controllers').controller('joinController',
|
||||||
function($scope, $rootScope, $timeout, $state, $ionicHistory, $ionicScrollDelegate, profileService, configService, storageService, applicationService, gettextCatalog, lodash, ledger, trezor, platformInfo, derivationPathHelper, ongoingProcess, walletService, $log, $stateParams, popupService) {
|
function($scope, $rootScope, $timeout, $state, $ionicHistory, $ionicScrollDelegate, profileService, configService, storageService, applicationService, gettextCatalog, lodash, ledger, trezor, platformInfo, derivationPathHelper, ongoingProcess, walletService, $log, $stateParams, popupService, $window) {
|
||||||
|
|
||||||
var isChromeApp = platformInfo.isChromeApp;
|
var isChromeApp = platformInfo.isChromeApp;
|
||||||
var isDevel = platformInfo.isDevel;
|
var isDevel = platformInfo.isDevel;
|
||||||
|
|
@ -61,20 +61,23 @@ angular.module('copayApp.controllers').controller('joinController',
|
||||||
|
|
||||||
Disable Hardware Wallets
|
Disable Hardware Wallets
|
||||||
|
|
||||||
if (isChromeApp) {
|
|
||||||
self.seedOptions.push({
|
|
||||||
id: 'ledger',
|
|
||||||
label: 'Ledger Hardware Wallet',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isChromeApp || isDevel) {
|
|
||||||
self.seedOptions.push({
|
|
||||||
id: 'trezor',
|
|
||||||
label: 'Trezor Hardware Wallet',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ($window.appConfig.name == 'copay') {
|
||||||
|
if (isChromeApp) {
|
||||||
|
self.seedOptions.push({
|
||||||
|
id: 'ledger',
|
||||||
|
label: 'Ledger Hardware Wallet',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isChromeApp || isDevel) {
|
||||||
|
self.seedOptions.push({
|
||||||
|
id: 'trezor',
|
||||||
|
label: 'Trezor Hardware Wallet',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setSeedSource = function() {
|
this.setSeedSource = function() {
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@
|
||||||
{'border-bottom-style': 'solid'}">
|
{'border-bottom-style': 'solid'}">
|
||||||
<span translate>File/Text</span>
|
<span translate>File/Text</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col ng-hide" ng-click="hardware = true; phrase = file = false; showAdv = false" ng-style="hardware &&
|
<div class="col" ng-click="hardware = true; phrase = file = false; showAdv = false" ng-style="hardware &&
|
||||||
{'border-bottom-style': 'solid'}">
|
{'border-bottom-style': 'solid'}" ng-show="showHardwareWallet">
|
||||||
<span translate>Hardware wallet</span>
|
<span translate>Hardware wallet</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue