copay/js/controllers/warning.js

28 lines
649 B
JavaScript
Raw Normal View History

2014-08-12 12:26:15 -07:00
'use strict';
2014-11-29 13:35:48 -08:00
angular.module('copayApp.controllers').controller('WarningController', function($scope, $rootScope, $location, identityService) {
2014-08-12 12:26:15 -07:00
$scope.checkLock = function() {
if (!$rootScope.tmp || !$rootScope.tmp.getLock()) {
2014-11-29 13:35:48 -08:00
console.log('[warning.js.7] TODO LOCK'); //TODO
2014-08-12 12:26:15 -07:00
}
};
$scope.signout = function() {
2014-11-29 19:31:17 -08:00
identityService.signout();
2014-08-12 12:26:15 -07:00
};
$scope.ignoreLock = function() {
var w = $rootScope.tmp;
delete $rootScope['tmp'];
if (!w) {
$location.path('/');
} else {
w.ignoreLock = 1;
$scope.loading = true;
2014-11-29 13:35:48 -08:00
//controllerUtils.startNetwork(w, $scope);
// TODO
2014-08-12 12:26:15 -07:00
}
};
});