summaryrefslogtreecommitdiffstats
path: root/client/components/swimlanes/swimlaneHeader.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-02-27 21:03:54 +0200
committerLauri Ojansivu <x@xet7.org>2019-02-27 21:03:54 +0200
commit82a728df7111413e4a1b106f4cd18265da5f397b (patch)
tree103291d880fcd494c115b216616a4e90bbff0832 /client/components/swimlanes/swimlaneHeader.js
parent3f067c793cba98df663fb7646d5d3aafc79efe09 (diff)
parent904b5bf0f5f6e36131bf2d081a5d08fef408ac81 (diff)
downloadwekan-82a728df7111413e4a1b106f4cd18265da5f397b.tar.gz
wekan-82a728df7111413e4a1b106f4cd18265da5f397b.tar.bz2
wekan-82a728df7111413e4a1b106f4cd18265da5f397b.zip
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'client/components/swimlanes/swimlaneHeader.js')
-rw-r--r--client/components/swimlanes/swimlaneHeader.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/components/swimlanes/swimlaneHeader.js b/client/components/swimlanes/swimlaneHeader.js
index 1004cb25..e7f3cc76 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 = '';
@@ -63,6 +65,7 @@ BlazeComponent.extendComponent({
// with a minimum of interactions
Popup.close();
},
+ 'click .js-swimlane-template': Popup.open('searchElement'),
}];
},
}).register('swimlaneAddPopup');