Merge claude/1
This commit is contained in:
commit
6fb595e481
@ -1014,11 +1014,15 @@ class TasksManager {
|
|||||||
Keeps the layout consistent across every row regardless of source. */
|
Keeps the layout consistent across every row regardless of source. */
|
||||||
renderTaskIcons(task) {
|
renderTaskIcons(task) {
|
||||||
const typeIcon = `<span class="task-type-icon">${this.getTaskTypeIcon(task).icon}</span>`;
|
const typeIcon = `<span class="task-type-icon">${this.getTaskTypeIcon(task).icon}</span>`;
|
||||||
if (task.app) {
|
// `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) {
|
||||||
const appIconPath = this.getAppIconPath(task);
|
const appIconPath = this.getAppIconPath(task);
|
||||||
return `${typeIcon}<img src="${appIconPath}" alt="${task.app}" class="task-app-icon" onerror="this.style.display='none'">`;
|
return `${typeIcon}<img src="${appIconPath}" alt="${task.app}" class="task-app-icon" onerror="this.style.display='none'">`;
|
||||||
}
|
}
|
||||||
if (this.isLibrePortalSystemTask(task)) {
|
if (isSystemSentinel || this.isLibrePortalSystemTask(task)) {
|
||||||
return `${typeIcon}<img src="/icons/libreportal.svg" alt="LibrePortal" class="task-app-icon">`;
|
return `${typeIcon}<img src="/icons/libreportal.svg" alt="LibrePortal" class="task-app-icon">`;
|
||||||
}
|
}
|
||||||
return typeIcon;
|
return typeIcon;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user