Add user transfer event

This commit is contained in:
Girish Ramakrishnan
2018-07-05 13:54:05 -07:00
parent e11dc028d1
commit cc812c2177
2 changed files with 5 additions and 0 deletions

View File

@@ -340,6 +340,7 @@ var ACTION_USER_ADD = 'user.add';
var ACTION_USER_LOGIN = 'user.login';
var ACTION_USER_REMOVE = 'user.remove';
var ACTION_USER_UPDATE = 'user.update';
var ACTION_USER_TRANSFER = 'user.transfer';
app.filter('eventLogSource', function() {
return function(eventLog) {
@@ -414,6 +415,9 @@ app.filter('eventLogDetails', function() {
case ACTION_USER_REMOVE:
return (data.user ? (data.user.email + (data.user.username ? ' (' + data.user.username + ')' : '')) : data.userId) + ' was removed';
case ACTION_USER_TRANSFER:
return 'Apps of ' + data.oldOwnerId + ' was transferred to ' + data.newOwnerId;
case ACTION_USER_LOGIN:
return (data.user ? (data.user.email + (data.user.username ? ' (' + data.user.username + ')' : '')) : data.userId) + ' logged in';