mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 21:28:49 +01:00
My Cards: fix bug when null board, swimlane, or list
* Add new functions to model card for retrieving associated board, swimlane, or list with default values * Use new card model methods
This commit is contained in:
parent
b79ee281ec
commit
0e1c510948
6 changed files with 54 additions and 33 deletions
|
|
@ -142,22 +142,4 @@ BlazeComponent.extendComponent({
|
|||
// console.log('cards:', cards);
|
||||
return cards;
|
||||
},
|
||||
|
||||
events() {
|
||||
return [
|
||||
{
|
||||
// 'click .js-my-card'(evt) {
|
||||
// const card = this.currentData().card;
|
||||
// // eslint-disable-next-line no-console
|
||||
// console.log('currentData():', this.currentData());
|
||||
// // eslint-disable-next-line no-console
|
||||
// console.log('card:', card);
|
||||
// if (card) {
|
||||
// Utils.goCardId(card._id);
|
||||
// }
|
||||
// evt.preventDefault();
|
||||
// },
|
||||
},
|
||||
];
|
||||
},
|
||||
}).register('dueCards');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue