소스 검색

Fix not being able to edit received date.

Thanks to xet7 !
Lauri Ojansivu 5 년 전
부모
커밋
5376bc7b79
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      client/components/cards/cardDetails.js

+ 1 - 6
client/components/cards/cardDetails.js

@@ -332,12 +332,7 @@ BlazeComponent.extendComponent({
         'click .js-assignee': Popup.open('cardAssignee'),
         'click .js-add-assignees': Popup.open('cardAssignees'),
         'click .js-add-labels': Popup.open('cardLabels'),
-        'click .js-received-date'(event) {
-          event.preventDefault();
-          if (!Meteor.user().isWorker) {
-            Popup.open('editCardReceivedDate');
-          }
-        },
+        'click .js-received-date': Popup.open('editCardReceivedDate'),
         'click .js-start-date': Popup.open('editCardStartDate'),
         'click .js-due-date': Popup.open('editCardDueDate'),
         'click .js-end-date': Popup.open('editCardEndDate'),