mirror of https://github.com/BTCPrivate/copay.git
lock also in header
This commit is contained in:
parent
74d6f76d8e
commit
33e0bf80a6
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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.username = $rootScope.iden.getName();
|
||||||
$scope.hoverMenu = false;
|
$scope.hoverMenu = false;
|
||||||
|
|
||||||
|
@ -39,7 +39,13 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
||||||
window.onbeforeunload = undefined;
|
window.onbeforeunload = undefined;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO put this on init()
|
||||||
if ($rootScope.wallet) {
|
if ($rootScope.wallet) {
|
||||||
|
pinService.check(function(err, value) {
|
||||||
|
$scope.hasPin = value;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$scope.$on('$idleStart', function() {
|
$scope.$on('$idleStart', function() {
|
||||||
});
|
});
|
||||||
$scope.$on('$idleWarn', function(a, countdown) {
|
$scope.$on('$idleWarn', function(a, countdown) {
|
||||||
|
|
|
@ -39,7 +39,10 @@
|
||||||
<i class="icon-person size-18 m10r"></i> {{'Profile'|translate}}<span class="size-10 text-warning" ng-if="!$root.needsEmailConfirmation && $root.iden.backupNeeded"> [ Needs Backup ]</span></a>
|
<i class="icon-person size-18 m10r"></i> {{'Profile'|translate}}<span class="size-10 text-warning" ng-if="!$root.needsEmailConfirmation && $root.iden.backupNeeded"> [ Needs Backup ]</span></a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#!/" title="Close" ng-click="signout()">
|
<li><a href="#!/" title="Close" ng-click="signout()">
|
||||||
<i class="icon-power size-18 m10r"></i> {{'Close'|translate}}</a></li>
|
<span ng-if="!hasPin"><i class="icon-power size-18 m10r"></i> {{'Close'|translate}}</span>
|
||||||
|
<span ng-if="hasPin"><i class="icon-power size-18 m10r"></i> {{'Lock'|translate}}</span>
|
||||||
|
</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue