From bf969333a323c085763b1c6047d584863b809881 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Thu, 27 Oct 2022 03:56:58 +0530 Subject: [PATCH] UI fixes --- index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index e1d9bae..aaa20df 100644 --- a/index.html +++ b/index.html @@ -1334,7 +1334,6 @@ switch (pageId) { case 'sign_in': getRef('private_key_field').focusIn() - break; } } @@ -1690,6 +1689,8 @@ if (filterCategory && allTasks[taskId].category !== filterCategory) continue; if (RIBC.getTaskStatus(projectCode, branch, task) !== 'incomplete') continue; if (searchQuery && searchQuery !== '' && !allTasks[taskId].title.toLowerCase().includes(searchQuery.toLowerCase())) continue; + if (RIBC.getAssignedInterns(projectCode, branch, task).length >= allTasks[taskId].maxSlots) continue; + if (typeOfUser && typeOfUser === 'intern' && floDapps.user.id && RIBC.getAssignedInterns(projectCode, branch, task).includes(floDapps.user.id)) continue; filtered.push(render.displayTaskCard(projectCode, branch, task)) availableCategories.add(allTasks[taskId].category) } @@ -1713,16 +1714,18 @@

Available Tasks

- - - + ${filtered.length > 0 ? html` + + + + `: ''} ${availableCategories.size > 1 ? html`${renderedCategories}` : ''}
-

Nothing to see here

+

Nothing to see here

`; @@ -2825,6 +2828,7 @@ let sessionTaskRequests = new Set(); function requestForTask(btn) { + hideTaskDetails() try { floDapps.user.id const taskId = btn ? btn.dataset.taskId : floGlobals.tempUserTaskRequest