mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04: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(() => {
|
||||
let mode = this.data().mode;
|
||||
const capitalizedMode = Utils.capitalize(mode);
|
||||
let thisId, searchId;
|
||||
let searchId;
|
||||
if (mode === 'linkedcard' || mode === 'linkedboard') {
|
||||
thisId = Utils.getCurrentCardId();
|
||||
searchId = Cards.findOne({ _id: thisId }).linkedId;
|
||||
searchId = Utils.getCurrentCard().linkedId;
|
||||
mode = mode.replace('linked', '');
|
||||
} else if (mode == "card" ) {
|
||||
searchId = Utils.getCurrentCardId();
|
||||
} else {
|
||||
thisId = Session.get(`current${capitalizedMode}`);
|
||||
searchId = thisId;
|
||||
searchId = Session.get(`current${capitalizedMode}`);
|
||||
}
|
||||
const limit = this.page.get() * activitiesPerPage;
|
||||
const user = Meteor.user();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue