implemented task creation using full form from kanban
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -121,7 +121,9 @@
|
||||
if (method != 'delete') processTask(json.task);
|
||||
|
||||
// show notification
|
||||
if (json.user.id != user.id) {
|
||||
if (json.user.id == user.id) {
|
||||
if (method == 'create') task_form = false; // task has been created by current user
|
||||
} else {
|
||||
let term = "user_updated_entity";
|
||||
if (method == 'create') term = "user_created_entity";
|
||||
if (method == 'delete') term = "user_deleted_entity";
|
||||
@@ -251,7 +253,6 @@
|
||||
}
|
||||
|
||||
function show_task_form(project_id,assignee,state_id){
|
||||
console.log({project_id,assignee,state_id});
|
||||
task_form = {project_id,assignee,state_id};
|
||||
}
|
||||
|
||||
@@ -274,7 +275,7 @@
|
||||
{#if project}
|
||||
{#if task_form}
|
||||
<div class="overlay">
|
||||
<TaskForm project_id={task_form.project_id} user_id={task_form.user_id} state={task_form.state} />
|
||||
<TaskForm project_id={task_form.project_id} assignee={task_form.assignee} state_id={task_form.state_id} />
|
||||
</div>
|
||||
{/if} <!-- task form -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user