Ver código fonte

Add Board Card Settings to Show on Card only some of it's fields.
Default WYSIWYG comment editor not enabled, use markdown instead.

Lauri Ojansivu 5 anos atrás
pai
commit
1350694538

+ 1 - 1
client/components/boards/boardHeader.js

@@ -30,7 +30,7 @@ Template.boardMenuPopup.events({
   'click .js-outgoing-webhooks': Popup.open('outgoingWebhooks'),
   'click .js-import-board': Popup.open('chooseBoardSource'),
   'click .js-subtask-settings': Popup.open('boardSubtaskSettings'),
-  'click .js-card-settings': Popup.open('boardCardSettings')
+  'click .js-card-settings': Popup.open('boardCardSettings'),
 });
 
 Template.boardMenuPopup.helpers({

+ 10 - 4
client/components/sidebar/sidebar.js

@@ -794,8 +794,11 @@ BlazeComponent.extendComponent({
         },
         'click .js-field-has-assigned-by'(evt) {
           evt.preventDefault();
-          this.currentBoard.allowsAssignedBy = !this.currentBoard.allowsAssignedBy;
-          this.currentBoard.setAllowsAssignedBy(this.currentBoard.allowsAssignedBy);
+          this.currentBoard.allowsAssignedBy = !this.currentBoard
+            .allowsAssignedBy;
+          this.currentBoard.setAllowsAssignedBy(
+            this.currentBoard.allowsAssignedBy,
+          );
           $(`.js-field-has-assigned-by ${MCB}`).toggleClass(
             CKCLS,
             this.currentBoard.allowsAssignedBy,
@@ -807,8 +810,11 @@ BlazeComponent.extendComponent({
         },
         'click .js-field-has-requested-by'(evt) {
           evt.preventDefault();
-          this.currentBoard.allowsRequestedBy = !this.currentBoard.allowsRequestedBy;
-          this.currentBoard.setAllowsRequestedBy(this.currentBoard.allowsRequestedBy);
+          this.currentBoard.allowsRequestedBy = !this.currentBoard
+            .allowsRequestedBy;
+          this.currentBoard.setAllowsRequestedBy(
+            this.currentBoard.allowsRequestedBy,
+          );
           $(`.js-field-has-requested-by ${MCB}`).toggleClass(
             CKCLS,
             this.currentBoard.allowsRequestedBy,