task modal: right column selected on creation

This commit is contained in:
Philippe PITTOLI 2019-12-08 02:54:07 +01:00
parent 3b489f1669
commit 54de1c880d
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ inexistant-column = (task, columns) ->
orphan-tasks = (tasks, columns) -> orphan-tasks = (tasks, columns) ->
tasks.filter (task) -> (! has-column) || inexistant-column task, columns tasks.filter (task) -> (! has-column) || inexistant-column task, columns
Project = (self, todod-ws) -> Project = (self, todod-ws) ->
self.todod-ws = todod-ws self.todod-ws = todod-ws
self.tasks = [] self.tasks = []

View File

@ -5,11 +5,12 @@ Modal = require './modal.ls'
TaskCreationModal = (project, todod-ws, task) -> TaskCreationModal = (project, todod-ws, task) ->
task ||= {} task ||= {}
# copy not to override anything on cancel
self = { self = {
title: task.title || "" title: task.title || ""
description: task.description || "" description: task.description || ""
extra_properties: { extra_properties: {
column: task.list || "" column: task.extra_properties.column || ""
} }
} }