mirror of
https://github.com/wekan/wekan.git
synced 2026-03-07 22:22:33 +01:00
My Cards and Due Cards development
* add spinner while pages are loading * use a single publication for My Cards * add Due Cards to the user menu * add description to the All Users option for Due Cards * some code clean-up
This commit is contained in:
parent
55b121e0d3
commit
ecc3558987
10 changed files with 197 additions and 185 deletions
|
|
@ -1,3 +1,5 @@
|
|||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
myCardsSort() {
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
@ -42,10 +44,17 @@ BlazeComponent.extendComponent({
|
|||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.isPageReady = new ReactiveVar(false);
|
||||
|
||||
this.autorun(() => {
|
||||
const handle = subManager.subscribe('myCards');
|
||||
Tracker.nonreactive(() => {
|
||||
Tracker.autorun(() => {
|
||||
this.isPageReady.set(handle.ready());
|
||||
});
|
||||
});
|
||||
});
|
||||
Meteor.subscribe('setting');
|
||||
Meteor.subscribe('myCards');
|
||||
Meteor.subscribe('mySwimlanes');
|
||||
Meteor.subscribe('myLists');
|
||||
},
|
||||
|
||||
myCardsSort() {
|
||||
|
|
@ -58,7 +67,7 @@ BlazeComponent.extendComponent({
|
|||
return this.myCardsSort() === 'board';
|
||||
},
|
||||
|
||||
myBoards() {
|
||||
myCardsList() {
|
||||
const userId = Meteor.userId();
|
||||
const boards = [];
|
||||
let board = null;
|
||||
|
|
@ -173,7 +182,7 @@ BlazeComponent.extendComponent({
|
|||
return boards;
|
||||
},
|
||||
|
||||
myCardsList() {
|
||||
myDueCardsList() {
|
||||
const userId = Meteor.userId();
|
||||
|
||||
const cursor = Cards.find(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue