summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorIgnatzHome <ignatz@maschath.de>2018-06-14 19:38:57 +0200
committerIgnatzHome <ignatz@maschath.de>2018-06-14 19:38:57 +0200
commit991e74bfc287d840951b7c707b7ff2a2f26e5001 (patch)
treecf8597ab137b20a6aec8aacf99013ce2d516f326 /client/components
parent4600e4e2379e12a928b1e8b3d20470f49b82f8b5 (diff)
downloadwekan-991e74bfc287d840951b7c707b7ff2a2f26e5001.tar.gz
wekan-991e74bfc287d840951b7c707b7ff2a2f26e5001.tar.bz2
wekan-991e74bfc287d840951b7c707b7ff2a2f26e5001.zip
testing mobile detail view fix.
Diffstat (limited to 'client/components')
-rw-r--r--client/components/cards/cardDetails.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 26549fda..a2bf2d02 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -21,8 +21,10 @@ BlazeComponent.extendComponent({
onCreated() {
this.isLoaded = new ReactiveVar(false);
- this.parentComponent().parentComponent().showOverlay.set(true);
- this.parentComponent().parentComponent().mouseHasEnterCardDetails = false;
+ let parentComponent = this.parentComponent().parentComponent();
+ if (parentComponent === null) parentComponent = this.parentComponent();
+ parentComponent.showOverlay.set(true);
+ parentComponent.mouseHasEnterCardDetails = false;
this.calculateNextPeak();
Meteor.subscribe('unsaved-edits');
@@ -43,8 +45,8 @@ BlazeComponent.extendComponent({
scrollParentContainer() {
const cardPanelWidth = 510;
- const bodyBoardComponent = this.parentComponent().parentComponent();
-
+ let bodyBoardComponent = this.parentComponent().parentComponent();
+ if (bodyBoardComponent === null) bodyBoardComponent = this.parentComponent();
const $cardView = this.$(this.firstNode());
const $cardContainer = bodyBoardComponent.$('.js-swimlanes');
const cardContainerScroll = $cardContainer.scrollLeft();
@@ -115,7 +117,9 @@ BlazeComponent.extendComponent({
},
onDestroyed() {
- this.parentComponent().parentComponent().showOverlay.set(false);
+ let parentComponent = this.parentComponent().parentComponent();
+ if (parentComponent === null) parentComponent = this.parentComponent();
+ parentComponent.showOverlay.set(false);
},
events() {
@@ -154,8 +158,10 @@ BlazeComponent.extendComponent({
'click .js-due-date': Popup.open('editCardDueDate'),
'click .js-end-date': Popup.open('editCardEndDate'),
'mouseenter .js-card-details' () {
- this.parentComponent().parentComponent().showOverlay.set(true);
- this.parentComponent().parentComponent().mouseHasEnterCardDetails = true;
+ let parentComponent = this.parentComponent().parentComponent();
+ if (parentComponent === null) parentComponent = this.parentComponent();
+ parentComponent.showOverlay.set(true);
+ parentComponent.mouseHasEnterCardDetails = true;
},
'click #toggleButton'() {
Meteor.call('toggleSystemMessages');