From cdf070189e11205eecd11641226ae62964cc03e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Sat, 23 Feb 2019 01:40:11 +0100 Subject: Remove links from templates board for the moment Insert the correct template type in templates board Allow independant lists in templates board Add some helpers --- client/components/swimlanes/swimlaneHeader.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/components/swimlanes/swimlaneHeader.js') diff --git a/client/components/swimlanes/swimlaneHeader.js b/client/components/swimlanes/swimlaneHeader.js index 1004cb25..b78bdc96 100644 --- a/client/components/swimlanes/swimlaneHeader.js +++ b/client/components/swimlanes/swimlaneHeader.js @@ -47,12 +47,14 @@ BlazeComponent.extendComponent({ const titleInput = this.find('.swimlane-name-input'); const title = titleInput.value.trim(); const sortValue = calculateIndexData(this.currentSwimlane, nextSwimlane, 1); + const swimlaneType = (currentBoard.isTemplatesBoard())?'template-swimlane':'swimlane'; if (title) { Swimlanes.insert({ title, boardId: Session.get('currentBoard'), sort: sortValue.base, + type: swimlaneType, }); titleInput.value = ''; -- cgit v1.2.3-1-g7c22