Compare commits

..

No commits in common. "6fb595e4811fa10c9666df10f4c1eecdcd931e96" and "6ca6320c88a0f1f3929ba38975b1cf976593e86c" have entirely different histories.

View File

@ -1014,15 +1014,11 @@ class TasksManager {
Keeps the layout consistent across every row regardless of source. */
renderTaskIcons(task) {
const typeIcon = `<span class="task-type-icon">${this.getTaskTypeIcon(task).icon}</span>`;
// `app: 'system'` is a category sentinel (config_update, system_update, …),
// not a real app slug, so it has no /icons/apps/system.svg — fall through
// to the LibrePortal-system branch so those tasks still get a logo.
const isSystemSentinel = task.app === 'system';
if (task.app && !isSystemSentinel) {
if (task.app) {
const appIconPath = this.getAppIconPath(task);
return `${typeIcon}<img src="${appIconPath}" alt="${task.app}" class="task-app-icon" onerror="this.style.display='none'">`;
}
if (isSystemSentinel || this.isLibrePortalSystemTask(task)) {
if (this.isLibrePortalSystemTask(task)) {
return `${typeIcon}<img src="/icons/libreportal.svg" alt="LibrePortal" class="task-app-icon">`;
}
return typeIcon;