Wallet/js/controllers/index.js

34 lines
855 B
JavaScript
Raw Normal View History

'use strict';
2014-12-19 16:05:52 -03:00
angular.module('copayApp.controllers').controller('IndexController', function($scope, $timeout, go, isCordova, identityService, notification) {
$scope.init = function() {
};
2014-12-18 16:04:00 -03:00
$scope.resendVerificationEmail = function() {
2014-12-19 16:05:52 -03:00
$scope.loading = true;
2014-12-18 16:04:00 -03:00
identityService.resendVerificationEmail(function(err) {
if (err) {
2014-12-19 16:05:52 -03:00
notification.error('Could not send email', 'There was a problem sending the verification email.');
2014-12-18 16:04:00 -03:00
}
2014-12-19 16:05:52 -03:00
else {
notification.success('Email sent', 'Check your inbox and confirms the email');
$scope.hideReSendButton = true;
}
$scope.loading = null;
$timeout(function() {
$scope.$digest();
}, 1);
return;
2014-12-18 16:04:00 -03:00
});
2014-12-18 09:37:07 -03:00
};
2015-01-30 09:34:11 -03:00
$scope.openMenu = function() {
go.swipe(true);
};
$scope.closeMenu = function() {
go.swipe();
};
});