more events

This commit is contained in:
Girish Ramakrishnan
2018-11-10 01:34:50 -08:00
parent 270389a18c
commit cf259ace47
2 changed files with 13 additions and 0 deletions

View File

@@ -331,6 +331,8 @@ app.filter('postInstallMessage', function () {
// keep this in sync with eventlog.js and CLI tool
var ACTION_ACTIVATE = 'cloudron.activate';
var ACTION_PROVISION = 'cloudron.provision';
var ACTION_RESTORE = 'cloudron.restore';
var ACTION_APP_CONFIGURE = 'app.configure';
var ACTION_APP_INSTALL = 'app.install';
var ACTION_APP_RESTORE = 'app.restore';
@@ -388,6 +390,12 @@ app.filter('eventLogDetails', function() {
case ACTION_ACTIVATE:
return 'Cloudron was activated';
case ACTION_PROVISION:
return 'Cloudron was setup';
case ACTION_RESTORE:
return 'Cloudron was restored from backup ' + data.backupId;
case ACTION_APP_CONFIGURE:
return (data.app ? (data.app.manifest.title + ' was re-configured at ' + (data.app.fqdn || data.app.location)) : '');
@@ -480,6 +488,9 @@ app.filter('eventLogAction', function() {
switch (eventLog.action) {
case ACTION_ACTIVATE: return 'Cloudron activated';
case ACTION_RESTORE: return 'Cloudron restored';
case ACTION_PROVISION: return 'Cloudron provisioned';
case ACTION_APP_CONFIGURE: return 'App configured';
case ACTION_APP_INSTALL: return 'App installed';
case ACTION_APP_RESTORE: return 'App restored';