mirror of
https://github.com/wekan/wekan.git
synced 2026-03-02 11:50:16 +01:00
replace Session key popupCard with popupCardId (better meaning of what the variable contains)
This commit is contained in:
parent
4733afe4eb
commit
f4a3363f6f
6 changed files with 14 additions and 14 deletions
|
|
@ -546,7 +546,7 @@ Template.cardDetails.helpers({
|
|||
}
|
||||
});
|
||||
Template.cardDetailsPopup.onDestroyed(() => {
|
||||
Session.delete('popupCard');
|
||||
Session.delete('popupCardId');
|
||||
Session.delete('popupCardBoardId');
|
||||
});
|
||||
Template.cardDetailsPopup.helpers({
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ BlazeComponent.extendComponent({
|
|||
const boardId = this.currentData().boardId;
|
||||
Meteor.subscribe('popupCardData', cardId, {
|
||||
onReady() {
|
||||
Session.set('popupCard', cardId);
|
||||
Session.set('popupCardId', cardId);
|
||||
Session.set('popupCardBoardId', boardId);
|
||||
this_.cardDetailsPopup(evt);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ BlazeComponent.extendComponent({
|
|||
// overwriting the event in case the card is already selected.
|
||||
} else if (Utils.isMiniScreen()) {
|
||||
evt.preventDefault();
|
||||
Session.set('popupCard', this.currentData()._id);
|
||||
Session.set('popupCardId', this.currentData()._id);
|
||||
this.cardDetailsPopup(evt);
|
||||
} else if (Session.equals('currentCard', this.currentData()._id)) {
|
||||
evt.stopImmediatePropagation();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ BlazeComponent.extendComponent({
|
|||
clickOnMiniCard(evt) {
|
||||
if (Utils.isMiniScreen()) {
|
||||
evt.preventDefault();
|
||||
Session.set('popupCard', this.currentData()._id);
|
||||
Session.set('popupCardId', this.currentData()._id);
|
||||
this.cardDetailsPopup(evt);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue