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) ->
|
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 = []
|
||||||
|
@ -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 || ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user