diff options
Diffstat (limited to 'client/components/swimlanes/swimlanes.js')
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index ce327f54..4dd84604 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -153,6 +153,10 @@ BlazeComponent.extendComponent({ }).register('swimlane'); BlazeComponent.extendComponent({ + onCreated() { + this.currentSwimlane = this.currentData(); + }, + // Proxy open() { this.childComponents('inlinedForm')[0].open(); @@ -164,11 +168,14 @@ BlazeComponent.extendComponent({ evt.preventDefault(); const titleInput = this.find('.list-name-input'); const title = titleInput.value.trim(); + const listType = (this.currentSwimlane.isListTemplatesSwimlane())?'template-list':'list'; if (title) { Lists.insert({ title, boardId: Session.get('currentBoard'), sort: $('.list').length, + type: listType, + swimlaneId: this.currentSwimlane._id, }); titleInput.value = ''; |