Merge branch 'PDIS-master'

This commit is contained in:
Lauri Ojansivu 2019-08-26 22:34:35 +03:00
commit 8c6164f590

View file

@ -701,12 +701,16 @@ BlazeComponent.extendComponent({
this.listId = this.parentComponent().data()._id; this.listId = this.parentComponent().data()._id;
this.swimlaneId = ''; this.swimlaneId = '';
let user = Meteor.user();
if (user) {
const boardView = (Meteor.user().profile || {}).boardView; const boardView = (Meteor.user().profile || {}).boardView;
if (boardView === 'board-view-swimlanes') if (boardView === 'board-view-swimlanes') {
this.swimlaneId = this.parentComponent() this.swimlaneId = this.parentComponent()
.parentComponent() .parentComponent()
.parentComponent() .parentComponent()
.data()._id; .data()._id;
}
}
}, },
onRendered() { onRendered() {