mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 10:20:14 +01:00
This seems to make more sense.
This commit is contained in:
parent
04925f7347
commit
61ee6cf09f
1 changed files with 15 additions and 14 deletions
|
|
@ -21,14 +21,12 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
onCreated() {
|
onCreated() {
|
||||||
this.isLoaded = new ReactiveVar(false);
|
this.isLoaded = new ReactiveVar(false);
|
||||||
console.log(this.parentComponent());
|
const boardBody = this.parentComponent().parentComponent();
|
||||||
console.log(this.parentComponent().parentComponent());
|
//in Miniview parent is Board, not BoardBody.
|
||||||
console.log(JSON.stringify(this.parentComponent()));
|
if (boardBody !== null){
|
||||||
console.log(JSON.stringify(this.parentComponent().parentComponent()));
|
boardBody.showOverlay.set(true);
|
||||||
let parentComponent = this.parentComponent().parentComponent();
|
boardBody.mouseHasEnterCardDetails = false;
|
||||||
if (parentComponent === null) parentComponent = this.parentComponent();
|
}
|
||||||
parentComponent.showOverlay.set(true);
|
|
||||||
parentComponent.mouseHasEnterCardDetails = false;
|
|
||||||
this.calculateNextPeak();
|
this.calculateNextPeak();
|
||||||
|
|
||||||
Meteor.subscribe('unsaved-edits');
|
Meteor.subscribe('unsaved-edits');
|
||||||
|
|
@ -49,8 +47,9 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
scrollParentContainer() {
|
scrollParentContainer() {
|
||||||
const cardPanelWidth = 510;
|
const cardPanelWidth = 510;
|
||||||
let bodyBoardComponent = this.parentComponent().parentComponent();
|
const bodyBoardComponent = this.parentComponent().parentComponent();
|
||||||
if (bodyBoardComponent === null) bodyBoardComponent = this.parentComponent();
|
//On Mobile View Parent is Board, Not Board Body. I cant see how this funciton should work then.
|
||||||
|
if (bodyBoardComponent === null) return;
|
||||||
const $cardView = this.$(this.firstNode());
|
const $cardView = this.$(this.firstNode());
|
||||||
const $cardContainer = bodyBoardComponent.$('.js-swimlanes');
|
const $cardContainer = bodyBoardComponent.$('.js-swimlanes');
|
||||||
const cardContainerScroll = $cardContainer.scrollLeft();
|
const cardContainerScroll = $cardContainer.scrollLeft();
|
||||||
|
|
@ -121,8 +120,9 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
onDestroyed() {
|
onDestroyed() {
|
||||||
let parentComponent = this.parentComponent().parentComponent();
|
const parentComponent = this.parentComponent().parentComponent();
|
||||||
if (parentComponent === null) parentComponent = this.parentComponent();
|
//on mobile view parent is Board, not board body.
|
||||||
|
if (parentComponent === null) return;
|
||||||
parentComponent.showOverlay.set(false);
|
parentComponent.showOverlay.set(false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -176,8 +176,9 @@ BlazeComponent.extendComponent({
|
||||||
'click .js-due-date': Popup.open('editCardDueDate'),
|
'click .js-due-date': Popup.open('editCardDueDate'),
|
||||||
'click .js-end-date': Popup.open('editCardEndDate'),
|
'click .js-end-date': Popup.open('editCardEndDate'),
|
||||||
'mouseenter .js-card-details' () {
|
'mouseenter .js-card-details' () {
|
||||||
let parentComponent = this.parentComponent().parentComponent();
|
const parentComponent = this.parentComponent().parentComponent();
|
||||||
if (parentComponent === null) parentComponent = this.parentComponent();
|
//on mobile view parent is Board, not BoardBody.
|
||||||
|
if (parentComponent === null) return;
|
||||||
parentComponent.showOverlay.set(true);
|
parentComponent.showOverlay.set(true);
|
||||||
parentComponent.mouseHasEnterCardDetails = true;
|
parentComponent.mouseHasEnterCardDetails = true;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue