fixes and remove unused views

This commit is contained in:
Gabriel Bazán 2017-05-09 17:29:33 -03:00
commit ff5b662f39
8 changed files with 14 additions and 29 deletions

View file

@ -121,7 +121,6 @@ angular.module('copayApp.controllers').controller('lockSetupController', functio
switch (method) {
case 'pin':
applicationService.pinModal('disable');
initMethodSelector();
break;
case 'fingerprint':
fingerprintService.check('unlockingApp', function(err) {
@ -136,7 +135,6 @@ angular.module('copayApp.controllers').controller('lockSetupController', functio
switch (method) {
case 'pin':
applicationService.pinModal('setup');
initMethodSelector();
break;
case 'fingerprint':
saveConfig('fingerprint');
@ -159,7 +157,7 @@ angular.module('copayApp.controllers').controller('lockSetupController', functio
};
$rootScope.$on('pinModalClosed', function() {
initMethodSelector();
init()
});
});

View file

@ -204,4 +204,5 @@ angular.module('copayApp.controllers').controller('pinController', function($sta
lockTimeControl(bannedUntil);
});
};
});

View file

@ -1,12 +0,0 @@
'use strict';
angular.module('copayApp.controllers').controller('pinTestController', function($scope, applicationService) {
$scope.goodPin = function() {
applicationService.successfullUnlocked = true;
$scope.pintestview.hide();
};
$scope.badPin = function() {};
});

View file

@ -1227,13 +1227,16 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
disableAnimate: true,
historyRoot: true
});
$state.transitionTo('tabs.home');
$state.transitionTo('tabs.home').then(function() {
// Clear history
$ionicHistory.clearHistory();
});
});
};
// After everything have been loaded, initialize handler URL
$timeout(function() {
openURLService.init();
});
}, 1000);
});
});

View file

@ -17,7 +17,7 @@ angular.module('copayApp.services').factory('glideraService', function($http, $l
* Development: 'testnet'
* Production: 'livenet'
*/
credentials.NETWORK = 'testnet';
credentials.NETWORK = 'livenet';
//credentials.NETWORK = 'testnet';
if (credentials.NETWORK == 'testnet') {