Fix In Lists view, Card Details pop-up does not appear in 6.31 release.

Thanks to Sdub76, niels, m4teh, r4nc0r, mfilser, medjedovicm and xet7 !

Fixes #4616
This commit is contained in:
Lauri Ojansivu 2022-08-04 00:26:42 +03:00
parent a551f2bcc7
commit 063ad08e9e

View file

@ -10,10 +10,10 @@ function currentListIsInThisSwimlane(swimlaneId) {
function currentCardIsInThisList(listId, swimlaneId) {
const currentCard = Utils.getCurrentCard();
const currentUser = Meteor.user();
//const currentUser = Meteor.user();
if (
currentUser &&
currentUser.profile &&
//currentUser &&
//currentUser.profile &&
Utils.boardView() === 'board-view-swimlanes'
)
return (
@ -21,7 +21,15 @@ function currentCardIsInThisList(listId, swimlaneId) {
currentCard.listId === listId &&
currentCard.swimlaneId === swimlaneId
);
else return currentCard && currentCard.listId === listId && currentCard.swimlaneId === swimlaneId;
else if (
//currentUser &&
//currentUser.profile &&
Utils.boardView() === 'board-view-lists'
)
return (
currentCard &&
currentCard.listId === listId
);
// https://github.com/wekan/wekan/issues/1623
// https://github.com/ChronikEwok/wekan/commit/cad9b20451bb6149bfb527a99b5001873b06c3de