lock also in header
This commit is contained in:
parent
74d6f76d8e
commit
33e0bf80a6
2 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, $filter, $timeout, notification, identityService, balanceService) {
|
||||
angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, $filter, $timeout, notification, identityService, balanceService, pinService) {
|
||||
$scope.username = $rootScope.iden.getName();
|
||||
$scope.hoverMenu = false;
|
||||
|
||||
|
|
@ -39,7 +39,13 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
|||
window.onbeforeunload = undefined;
|
||||
});
|
||||
|
||||
// TODO put this on init()
|
||||
if ($rootScope.wallet) {
|
||||
pinService.check(function(err, value) {
|
||||
$scope.hasPin = value;
|
||||
});
|
||||
|
||||
|
||||
$scope.$on('$idleStart', function() {
|
||||
});
|
||||
$scope.$on('$idleWarn', function(a, countdown) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue