enable devel mode

This commit is contained in:
JDonadio 2017-03-29 09:25:18 -03:00
parent 9049c3148d
commit 07be82f9d0
4 changed files with 5 additions and 5 deletions

View File

@ -71,6 +71,7 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
$scope.$on("$ionicView.beforeEnter", function(event, data) { $scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.isCordova = platformInfo.isCordova; $scope.isCordova = platformInfo.isCordova;
$scope.isDevel = platformInfo.isDevel;
updateConfig(); updateConfig();
}); });

View File

@ -4,8 +4,7 @@ angular.module('copayApp.controllers').controller('lockappController', function(
$scope.$on("$ionicView.beforeEnter", function(event) { $scope.$on("$ionicView.beforeEnter", function(event) {
var config = configService.getSync(); var config = configService.getSync();
$scope.fingerprintAvailable = true; $scope.fingerprintAvailable = fingerprintService.isAvailable();
// $scope.fingerprintAvailable = fingerprintService.isAvailable();
$scope.usePincode = { $scope.usePincode = {
enabled: config.lockapp ? config.lockapp.pincode.enabled : false enabled: config.lockapp ? config.lockapp.pincode.enabled : false

View File

@ -1259,12 +1259,12 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
configService.whenAvailable(function(config) { configService.whenAvailable(function(config) {
var lockapp = config.lockapp; var lockapp = config.lockapp;
startupService.ready(); startupService.ready();
if (platformInfo.isCordova && fingerprintService.isAvailable() && lockapp.fingerprint && lockapp.fingerprint.enabled) { if ((platformInfo.isCordova || platformInfo.isDevel) && fingerprintService.isAvailable() && lockapp.fingerprint && lockapp.fingerprint.enabled) {
fingerprintService.check('unlockingApp', function(err) { fingerprintService.check('unlockingApp', function(err) {
if (err) goTo('deadview'); if (err) goTo('deadview');
else goTo('tabs.home'); else goTo('tabs.home');
}); });
} else if (platformInfo.isCordova && lockapp.pincode && lockapp.pincode.enabled) { } else if ((platformInfo.isCordova || platformInfo.isDevel) && lockapp.pincode && lockapp.pincode.enabled) {
goTo('pincode'); goTo('pincode');
} else } else
goTo('tabs.home'); goTo('tabs.home');

View File

@ -29,7 +29,7 @@
<span class="toggle-label" translate>Hide Next Steps Card</span> <span class="toggle-label" translate>Hide Next Steps Card</span>
</ion-toggle> </ion-toggle>
<div ng-if="isCordova"> <div ng-if="isCordova || isDevel">
<div class="item item-divider"></div> <div class="item item-divider"></div>
<a class="item item-icon-right" ui-sref="tabs.lockapp"> <a class="item item-icon-right" ui-sref="tabs.lockapp">