fix(tasks): show LibrePortal logo on system health/network heal task rows
The task-list row only paints the LibrePortal app-logo for commands matched by isLibrePortalSystemTask's whitelist (appless tasks otherwise get just the type icon, so arbitrary custom commands don't get a spurious logo). `libreportal system health/network heal|check` weren't in it — only `system reclaim|image` — so the heal rows showed a bare function icon instead of the logo like "Check for Updates". Add health|network to the whitelist. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
fb4ad9a555
commit
2da888f92d
@ -287,7 +287,7 @@ Object.assign(TasksManager.prototype, {
|
||||
},
|
||||
isLibrePortalSystemTask(task) {
|
||||
if (!task || !task.command || task.app) return false;
|
||||
return /^libreportal (setup|backup\s+all|backup\s+system|backup\s+verify|backup\s+location|backup\s+repo|restore\s+migrate\s+system|restore\s+migrate\s+discover|restore\s+first-run|webui|config|update|verify|system\s+(reclaim|image))\b/.test(task.command);
|
||||
return /^libreportal (setup|backup\s+all|backup\s+system|backup\s+verify|backup\s+location|backup\s+repo|restore\s+migrate\s+system|restore\s+migrate\s+discover|restore\s+first-run|webui|config|update|verify|system\s+(reclaim|image|health|network))\b/.test(task.command);
|
||||
},
|
||||
getTaskTypeIcon(task) {
|
||||
if (!task.type) return { icon: '⚙️', class: 'custom' };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user