Add button to trigger the invite email

This commit is contained in:
Johannes Zellner
2016-01-18 15:45:54 +01:00
parent f77682365e
commit 46878e4363
2 changed files with 10 additions and 1 deletions

View File

@@ -39,6 +39,14 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
});
};
$scope.sendInvite = function (user) {
Client.sendInvite(user.username, function (error) {
if (error) return console.error(error);
Client.notify('', 'Invitation was successfully sent to ' + user.email + '.', false, 'success');
});
};
$scope.doAdd = function () {
$scope.useradd.busy = true;