dashboard: show who installed an app in the eventlog

This commit is contained in:
Johannes Zellner
2024-05-10 17:55:57 +02:00
parent 6681f2e5c8
commit bbefa38355

View File

@@ -3675,6 +3675,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
return pre + (app.label || app.fqdn || app.subdomain) + ' (' + app.manifest.title + ') ';
}
function eventBy() {
if (eventLog.source && eventLog.source.username) return ' by ' + eventLog.source.username;
return '';
}
switch (eventLog.action) {
case ACTION_ACTIVATE:
return 'Cloudron was activated';
@@ -3768,7 +3773,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
case ACTION_APP_INSTALL:
if (!data.app) return '';
return data.app.manifest.title + ' (package v' + data.app.manifest.version + ') was installed ' + appName('at', data.app);
return data.app.manifest.title + ' (package v' + data.app.manifest.version + ') was installed ' + appName('at', data.app) + eventBy();
case ACTION_APP_RESTORE:
if (!data.app) return '';