mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
added comment section on card details to avoid loading the card comment activities from the server
- and added to show only the activities a card - to display the card comments a connection to the server was needed to get the activities of the card comments, now, it's not necessary - also performance relevant. until now there were a lot of activities loaded, now only of the current card
This commit is contained in:
parent
0196f46094
commit
8a446de3e9
21 changed files with 329 additions and 266 deletions
|
|
@ -634,6 +634,10 @@ Boards.attachSchema(
|
|||
decimal: true,
|
||||
defaultValue: -1,
|
||||
},
|
||||
showActivities: {
|
||||
type: Boolean,
|
||||
defaultValue: false,
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
@ -1544,6 +1548,10 @@ Boards.mutations({
|
|||
move(sortIndex) {
|
||||
return { $set: { sort: sortIndex } };
|
||||
},
|
||||
|
||||
toggleShowActivities() {
|
||||
return { $set: { showActivities: !this.showActivities } };
|
||||
},
|
||||
});
|
||||
|
||||
function boardRemover(userId, doc) {
|
||||
|
|
@ -1751,6 +1759,26 @@ if (Meteor.isServer) {
|
|||
}),
|
||||
).sort();
|
||||
},
|
||||
setAllBoardsHideActivities() {
|
||||
if (ReactiveCache.getCurrentUser()?.isAdmin) {
|
||||
Boards.update(
|
||||
{
|
||||
showActivities: true
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
showActivities: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
multi: true,
|
||||
},
|
||||
);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Meteor.methods({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue