NASER add type for apps list

This commit is contained in:
Montzar.ah.01
2026-04-25 12:54:33 +00:00
parent c159163601
commit cf50c3371f
3 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -769,9 +769,10 @@ $priorityColors = [
// اپ
const appNameEl = document.getElementById('modalTaskAppName');
const appTypes = {1:'خانگی', 2:'همکار'};
if (appNameEl) {
const app = (appsList || []).find(a => String(a.id) === String(task.app));
appNameEl.textContent = app?.name_fa || '-';
appNameEl.textContent = app?.name_fa ` (${appTypes[app.type]})` || '-';
}
// اولویت