add dead view (wip) - fix last/current state

This commit is contained in:
JDonadio 2017-03-10 14:17:23 -03:00
commit 014995fd36
5 changed files with 79 additions and 13 deletions

View file

@ -0,0 +1,13 @@
'use strict';
angular.module('copayApp.controllers').controller('deadviewController', function($state, $scope, $ionicHistory, fingerprintService) {
$scope.requestFingerprint = function() {
fingerprintService.check('unlockingApp', function(err) {
if (err) return;
$state.transitionTo('tabs.home').then(function() {
$ionicHistory.clearHistory();
});
});
};
});