diff options
author | Pouyan Savoli <papoola@hotmail.com> | 2017-08-27 22:31:24 +0200 |
---|---|---|
committer | Pouyan Savoli <papoola@hotmail.com> | 2017-09-22 22:59:32 +0200 |
commit | afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71 (patch) | |
tree | 1ebd0ab35da1555e98aef2741119dee84120a5b1 /client/components/cards/cardDetails.js | |
parent | ade3c02122d262c72bd7c4fd1cbcab8e136184ba (diff) | |
download | wekan-afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71.tar.gz wekan-afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71.tar.bz2 wekan-afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71.zip |
many custom fields model and UI enhancements
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 7c6c3ce7..f972424f 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -154,6 +154,7 @@ Template.cardDetailsActionsPopup.events({ 'click .js-members': Popup.open('cardMembers'), 'click .js-labels': Popup.open('cardLabels'), 'click .js-attachments': Popup.open('cardAttachments'), + 'click .js-custom-fields': Popup.open('cardCustomFields'), 'click .js-start-date': Popup.open('editCardStartDate'), 'click .js-due-date': Popup.open('editCardDueDate'), 'click .js-move-card': Popup.open('moveCard'), @@ -196,6 +197,20 @@ Template.editCardTitleForm.events({ }, }); +Template.cardCustomFieldsPopup.events({ + 'click .js-select-field'(evt) { + const card = Cards.findOne(Session.get('currentCard')); + const customFieldId = this.customFieldId; + card.toggleCustomField(customFieldId); + evt.preventDefault(); + }, + 'click .js-configure-custom-fields'(evt) { + EscapeActions.executeUpTo('detailsPane'); + Sidebar.setView('customFields'); + evt.preventDefault(); + } +}); + Template.moveCardPopup.events({ 'click .js-select-list' () { // XXX We should *not* get the currentCard from the global state, but |