task modal: right column selected on creation
This commit is contained in:
parent
3b489f1669
commit
54de1c880d
@ -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 = []
|
||||
|
@ -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 || ""
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user