mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Development and fixes to My Cards and Due Cards
This commit is contained in:
parent
0e1c510948
commit
55b121e0d3
7 changed files with 50 additions and 108 deletions
|
|
@ -8,12 +8,7 @@ BlazeComponent.extendComponent({
|
|||
events() {
|
||||
return [
|
||||
{
|
||||
'click .js-toggle-my-cards-choose-sort'() {
|
||||
// eslint-disable-next-line no-console
|
||||
// console.log('open sort');
|
||||
// Popup.open('dueCardsViewChange');
|
||||
Utils.dueCardsViewToggle();
|
||||
},
|
||||
'click .js-due-cards-view-change': Popup.open('dueCardsViewChange'),
|
||||
},
|
||||
];
|
||||
},
|
||||
|
|
@ -29,13 +24,13 @@ BlazeComponent.extendComponent({
|
|||
events() {
|
||||
return [
|
||||
{
|
||||
'click .js-my-cards-sort-board'() {
|
||||
Utils.setMyCardsSort('board');
|
||||
'click .js-due-cards-view-me'() {
|
||||
Utils.setDueCardsView('me');
|
||||
Popup.close();
|
||||
},
|
||||
|
||||
'click .js-my-cards-sort-dueat'() {
|
||||
Utils.setMyCardsSort('dueAt');
|
||||
'click .js-due-cards-view-all'() {
|
||||
Utils.setDueCardsView('all');
|
||||
Popup.close();
|
||||
},
|
||||
},
|
||||
|
|
@ -46,7 +41,7 @@ BlazeComponent.extendComponent({
|
|||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
Meteor.subscribe('setting');
|
||||
Meteor.subscribe('dueCards');
|
||||
Meteor.subscribe('dueCards', Utils.dueCardsView() === 'all');
|
||||
},
|
||||
|
||||
dueCardsView() {
|
||||
|
|
@ -60,7 +55,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
dueCardsList() {
|
||||
const allUsers = false;
|
||||
const allUsers = Utils.dueCardsView() === 'all';
|
||||
|
||||
const user = Meteor.user();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue