give feedback to the user
This commit is contained in:
parent
b0c31b37c3
commit
94a8ecbf2b
1 changed files with 11 additions and 3 deletions
|
|
@ -1,12 +1,20 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('IndexController', function($scope, go, isCordova, identityService) {
|
angular.module('copayApp.controllers').controller('IndexController', function($scope, go, isCordova, identityService, notification) {
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.resendVerificationEmail = function () {
|
$scope.resendVerificationEmail = function() {
|
||||||
identityService.resendVerificationEmail(function () {});
|
identityService.resendVerificationEmail(function(err) {
|
||||||
|
if (err) {
|
||||||
|
notification.error('Could not send email', 'There was a problem sending the verification email.');
|
||||||
|
setTimeout(function() {
|
||||||
|
$scope.$digest();
|
||||||
|
}, 1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.swipe = function(invert) {
|
$scope.swipe = function(invert) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue