summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r--client/components/cards/cardDetails.js39
1 files changed, 1 insertions, 38 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index f47b3824..67120043 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -26,7 +26,6 @@ BlazeComponent.extendComponent({
onCreated() {
this.currentBoard = Boards.findOne(Session.get('currentBoard'));
- this.currentUser = Meteor.user();
this.isLoaded = new ReactiveVar(false);
const boardBody = this.parentComponent().parentComponent();
//in Miniview parent is Board, not BoardBody.
@@ -56,15 +55,6 @@ BlazeComponent.extendComponent({
);
},
- canModifyCardWorker() {
- return (
- Meteor.user() &&
- Meteor.user().isBoardMember() &&
- !Meteor.user().isCommentOnly() &&
- !Meteor.user().isWorker()
- );
- },
-
scrollParentContainer() {
const cardPanelWidth = 510;
const bodyBoardComponent = this.parentComponent().parentComponent();
@@ -393,13 +383,6 @@ Template.cardDetails.helpers({
return user && user.isBoardAdmin() ? 'admin' : 'normal';
},
- isWorker() {
- const currentBoard = Boards.findOne(Session.get('currentBoard'));
- return (
- !currentBoard.hasAdmin(this.userId) && currentBoard.hasWorker(this.userId)
- );
- },
-
presenceStatusClassName() {
const user = Users.findOne(this.userId);
const userPresence = presences.findOne({ userId: this.userId });
@@ -476,15 +459,6 @@ Template.cardDetailsActionsPopup.helpers({
!Meteor.user().isCommentOnly()
);
},
-
- canModifyCardWorker() {
- return (
- Meteor.user() &&
- Meteor.user().isBoardMember() &&
- !Meteor.user().isCommentOnly() &&
- !Meteor.user().isWorker()
- );
- },
});
Template.cardDetailsActionsPopup.events({
@@ -493,12 +467,7 @@ Template.cardDetailsActionsPopup.events({
'click .js-labels': Popup.open('cardLabels'),
'click .js-attachments': Popup.open('cardAttachments'),
'click .js-custom-fields': Popup.open('cardCustomFields'),
- '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'),
@@ -910,12 +879,6 @@ Template.cardAssigneesPopup.events({
card.toggleAssignee(assigneeId);
event.preventDefault();
},
- 'click .js-select-assigneeWorker'(event) {
- const card = Cards.findOne(Session.get('currentCard'));
- const assigneeId = currentUser._id;
- card.toggleAssignee(assigneeId);
- event.preventDefault();
- },
});
Template.cardAssigneesPopup.helpers({