mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 10:50:13 +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({
|
||||
dueCardsView() {
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
@ -40,8 +42,20 @@ BlazeComponent.extendComponent({
|
|||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.isPageReady = new ReactiveVar(false);
|
||||
|
||||
this.autorun(() => {
|
||||
const handle = subManager.subscribe(
|
||||
'dueCards',
|
||||
Utils.dueCardsView() === 'all',
|
||||
);
|
||||
Tracker.nonreactive(() => {
|
||||
Tracker.autorun(() => {
|
||||
this.isPageReady.set(handle.ready());
|
||||
});
|
||||
});
|
||||
});
|
||||
Meteor.subscribe('setting');
|
||||
Meteor.subscribe('dueCards', Utils.dueCardsView() === 'all');
|
||||
},
|
||||
|
||||
dueCardsView() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue