task modal: right column selected on creation

dev
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) ->
tasks.filter (task) -> (! has-column) || inexistant-column task, columns
Project = (self, todod-ws) ->
self.todod-ws = todod-ws
self.tasks = []

View File

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