diff --git a/frontend/src/routes/task/Index.svelte b/frontend/src/routes/task/Index.svelte index 0cb7461..28de894 100644 --- a/frontend/src/routes/task/Index.svelte +++ b/frontend/src/routes/task/Index.svelte @@ -6,6 +6,7 @@ import { error, yikes } from '../../warn.svelte'; import { t } from '../../translations.svelte.js'; + let filter = $state(null); let projects = $state({}); let router = useTinyRouter(); let tasks = $state(null); @@ -44,6 +45,10 @@ router.navigate(`/task/${tid}/edit`); } + function filterApplies(task){ + return true; + } + function go(module, id){ router.navigate(`/${module}/${id}/view`); } @@ -103,6 +108,11 @@
{loading ? t('loading_object',{object:t('task_list')}) : t('task_list')} +
+ +
{#if tasks} @@ -117,7 +127,7 @@ {#each tasks as task,idx} - {#if task.status > 10 && task.status < 60 && !task.no_index && projects[task.project_id]?.status < 60 && !hidden[task.id]} + {#if task.status > 10 && task.status < 60 && !task.no_index && projects[task.project_id]?.status < 60 && !hidden[task.id] && filterApplies(task)}
go('task',task.id)}>{task.name}