mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
Add preferences tab to user settings, add subscribe to own cards option
This commit is contained in:
parent
f3e0cadca6
commit
6a82448dc7
13 changed files with 96 additions and 2 deletions
|
@ -49,6 +49,17 @@ module.exports = {
|
|||
boardId: inputs.list.boardId,
|
||||
}).fetch();
|
||||
|
||||
if (inputs.user.subscribeToOwnCards) {
|
||||
await CardSubscription.create({
|
||||
cardId: card.id,
|
||||
userId: inputs.user.id,
|
||||
}).tolerate('E_UNIQUE');
|
||||
|
||||
card.isSubscribed = true;
|
||||
} else {
|
||||
card.isSubscribed = false;
|
||||
}
|
||||
|
||||
sails.sockets.broadcast(
|
||||
`board:${card.boardId}`,
|
||||
'cardCreate',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue