preparing to create new task from kanban using tasks/Add form

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-02-03 09:21:22 +01:00
parent 1942f377b8
commit 0f902e3efa
3 changed files with 30 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
import PermissionEditor from '../../Components/PermissionEditor.svelte';
import Tags from '../tags/TagList.svelte';
let { project_id = null, parent_task_id } = $props();
let { project_id = null, parent_task_id = null, assignee = null, state_id = null } = $props();
let project = $state(null);
let extendedSettings = $state(false);
let parent_task = $state(null);
@@ -44,6 +44,8 @@
async function load(){
if (parent_task_id) await loadParent();
if (project_id) loadProject();
if (assignee) task.assignee = +assignee;
if (state_id) task.state = +state_id;
loadTags();
}
@@ -53,7 +55,7 @@
if (resp.ok){
parent_task = await resp.json();
task.parent_task_id = +parent_task_id;
project_id = parent_task.project_id;
project_id = +parent_task.project_id;
yikes();
project = null; // TODO
} else {