refactor
This commit is contained in:
parent
07be82f9d0
commit
5c2b067c87
14 changed files with 196 additions and 218 deletions
17
src/js/controllers/lockedView.js
Normal file
17
src/js/controllers/lockedView.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('lockedViewController', function($state, $scope, $ionicHistory, fingerprintService, appConfigService, gettextCatalog) {
|
||||
$scope.$on("$ionicView.beforeEnter", function(event) {
|
||||
$scope.title = appConfigService.nameCase + ' ' + gettextCatalog.getString('is locked');
|
||||
$scope.appName = appConfigService.name;
|
||||
});
|
||||
|
||||
$scope.requestFingerprint = function() {
|
||||
fingerprintService.check('unlockingApp', function(err) {
|
||||
if (err) return;
|
||||
$state.transitionTo('tabs.home').then(function() {
|
||||
$ionicHistory.clearHistory();
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue