diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-17 01:55:57 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-08-10 23:59:08 +0200 |
commit | 0a62089df02b2ab308d4749a837e08c4164cb770 (patch) | |
tree | 7a8ff38e2074e3568d99f5202893d32398d6fb76 /client/components/cards/cardDetails.js | |
parent | a93de07fb9b85f97da274bf549e5244ee8e30484 (diff) | |
download | wekan-0a62089df02b2ab308d4749a837e08c4164cb770.tar.gz wekan-0a62089df02b2ab308d4749a837e08c4164cb770.tar.bz2 wekan-0a62089df02b2ab308d4749a837e08c4164cb770.zip |
Allow description and member two way binding
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 181fea1b..2cd399c1 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -43,8 +43,7 @@ BlazeComponent.extendComponent({ }, canModifyCard() { - return Meteor.user() && Meteor.user().isBoardMember() && - !Meteor.user().isCommentOnly() && !this.currentData().isImported(); + return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly(); }, scrollParentContainer() { @@ -275,7 +274,7 @@ BlazeComponent.extendComponent({ close(isReset = false) { if (this.isOpen.get() && !isReset) { const draft = this.getValue().trim(); - if (draft !== Cards.findOne(Session.get('currentCard')).description) { + if (draft !== Cards.findOne(Session.get('currentCard')).getDescription()) { UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue()); } } |