mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 08:50:13 +01:00
Card detail popup loads now comments if opened from board search
This commit is contained in:
parent
fdd23e2f54
commit
f1b49e05eb
1 changed files with 5 additions and 5 deletions
|
|
@ -13,14 +13,14 @@ BlazeComponent.extendComponent({
|
||||||
this.autorun(() => {
|
this.autorun(() => {
|
||||||
let mode = this.data().mode;
|
let mode = this.data().mode;
|
||||||
const capitalizedMode = Utils.capitalize(mode);
|
const capitalizedMode = Utils.capitalize(mode);
|
||||||
let thisId, searchId;
|
let searchId;
|
||||||
if (mode === 'linkedcard' || mode === 'linkedboard') {
|
if (mode === 'linkedcard' || mode === 'linkedboard') {
|
||||||
thisId = Utils.getCurrentCardId();
|
searchId = Utils.getCurrentCard().linkedId;
|
||||||
searchId = Cards.findOne({ _id: thisId }).linkedId;
|
|
||||||
mode = mode.replace('linked', '');
|
mode = mode.replace('linked', '');
|
||||||
|
} else if (mode == "card" ) {
|
||||||
|
searchId = Utils.getCurrentCardId();
|
||||||
} else {
|
} else {
|
||||||
thisId = Session.get(`current${capitalizedMode}`);
|
searchId = Session.get(`current${capitalizedMode}`);
|
||||||
searchId = thisId;
|
|
||||||
}
|
}
|
||||||
const limit = this.page.get() * activitiesPerPage;
|
const limit = this.page.get() * activitiesPerPage;
|
||||||
const user = Meteor.user();
|
const user = Meteor.user();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue