diff --git a/src/js/index.js b/src/js/index.js index 006b8a4cb..7844b4443 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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'; diff --git a/src/views/activity.js b/src/views/activity.js index 547a7a9fd..ab1b746dd 100644 --- a/src/views/activity.js +++ b/src/views/activity.js @@ -25,6 +25,8 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca { name: 'certificate.renew', value: 'certificate.renew' }, { name: 'settings.climode', value: 'settings.climode' }, { name: 'cloudron.activate', value: 'cloudron.activate' }, + { name: 'cloudron.provision', value: 'cloudron.provision' }, + { name: 'cloudron.restore', value: 'cloudron.restore' }, { name: 'cloudron.start', value: 'cloudron.start' }, { name: 'cloudron.update', value: 'cloudron.update' }, { name: 'domain.add', value: 'domain.add' },