Add dyndns event
This commit is contained in:
@@ -370,6 +370,8 @@ var ACTION_MAIL_MAILBOX_REMOVE = 'mail.box.remove';
|
||||
var ACTION_MAIL_LIST_ADD = 'mail.list.add';
|
||||
var ACTION_MAIL_LIST_REMOVE = 'mail.list.remove';
|
||||
|
||||
var ACTION_DYNDNS_UPDATE = 'dyndns.update';
|
||||
|
||||
app.filter('eventLogSource', function() {
|
||||
return function(eventLog) {
|
||||
var source = eventLog.source;
|
||||
@@ -502,6 +504,9 @@ app.filter('eventLogDetails', function() {
|
||||
case ACTION_USER_LOGIN:
|
||||
return (data.user ? (data.user.email + (data.user.username ? ' (' + data.user.username + ')' : '')) : data.userId) + ' logged in';
|
||||
|
||||
case ACTION_DYNDNS_UPDATE:
|
||||
return 'DNS was updated from ' + data.fromIp + ' to ' + data.toIp;
|
||||
|
||||
default: return eventLog.action;
|
||||
}
|
||||
};
|
||||
@@ -542,6 +547,7 @@ app.filter('eventLogAction', function() {
|
||||
case ACTION_USER_LOGIN: return 'User login';
|
||||
case ACTION_USER_REMOVE: return 'User removed';
|
||||
case ACTION_USER_UPDATE: return 'User updated';
|
||||
case ACTION_DYNDNS_UPDATE: return 'DNS Updated';
|
||||
default: return eventLog.action;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user