Fixed attachments and minicard related bugs that prevented WeKan starting.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-11 12:13:11 +03:00
parent 7fce5650b8
commit a86ff1e8d0
8 changed files with 82 additions and 50 deletions

View file

@ -72,16 +72,6 @@ template(name="minicard")
span.card-number
| ##{getCardNumber}
= getTitle
if shouldShowListOnMinicard
.minicard-list-name
i.fa.fa-list
| {{ listName }}
if $eq 'subtext-with-full-path' currentBoard.presentParentTask
.parent-subtext
| {{ parentString ' > ' }}
if $eq 'subtext-with-parent' currentBoard.presentParentTask
.parent-subtext
| {{ parentCardName }}
if labels
.minicard-labels(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
each labels
@ -201,6 +191,16 @@ if shouldShowListOnMinicard
.minicard-description
+viewer
| {{ getDescription }}
if shouldShowListOnMinicard
.minicard-list-name
i.fa.fa-list
| {{ listName }}
if $eq 'subtext-with-full-path' currentBoard.presentParentTask
.parent-subtext
| {{ parentString ' > ' }}
if $eq 'subtext-with-parent' currentBoard.presentParentTask
.parent-subtext
| {{ parentCardName }}
template(name="editCardSortOrderPopup")
input.js-edit-card-sort-popup(type='text' autofocus value=sort dir="auto")

View file

@ -23,7 +23,7 @@ Template.userAvatar.helpers({
/*
presenceStatusClassName() {
const user = ReactiveCache.getUser(this.userId);
const userPresence = presences.findOne({ userId: this.userId });
const userPresence = Presences.findOne({ userId: this.userId });
if (user && user.isInvitedTo(Session.get('currentBoard'))) return 'pending';
else if (!userPresence) return 'disconnected';
else if (Session.equals('currentBoard', userPresence.state.currentBoardId))