mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02: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
|
@ -116,8 +116,6 @@ FlowRouter.route('/shortcuts', {
|
|||
FlowRouter.route('/my-cards', {
|
||||
name: 'my-cards',
|
||||
action() {
|
||||
const myCardsTemplate = 'myCards';
|
||||
|
||||
Filter.reset();
|
||||
// EscapeActions.executeAll();
|
||||
EscapeActions.executeUpTo('popup-close');
|
||||
|
@ -125,15 +123,9 @@ FlowRouter.route('/my-cards', {
|
|||
Utils.manageCustomUI();
|
||||
Utils.manageMatomo();
|
||||
|
||||
// if (previousPath) {
|
||||
// Modal.open(myCardsTemplate, {
|
||||
// header: 'myCardsModalTitle',
|
||||
// onCloseGoTo: previousPath,
|
||||
// });
|
||||
// } else {
|
||||
BlazeLayout.render('defaultLayout', {
|
||||
headerBar: 'myCardsHeaderBar',
|
||||
content: myCardsTemplate,
|
||||
content: 'myCards',
|
||||
});
|
||||
// }
|
||||
},
|
||||
|
@ -142,8 +134,6 @@ FlowRouter.route('/my-cards', {
|
|||
FlowRouter.route('/due-cards', {
|
||||
name: 'due-cards',
|
||||
action() {
|
||||
const dueCardsTemplate = 'dueCards';
|
||||
|
||||
Filter.reset();
|
||||
// EscapeActions.executeAll();
|
||||
EscapeActions.executeUpTo('popup-close');
|
||||
|
@ -151,15 +141,9 @@ FlowRouter.route('/due-cards', {
|
|||
Utils.manageCustomUI();
|
||||
Utils.manageMatomo();
|
||||
|
||||
// if (previousPath) {
|
||||
// Modal.open(dueCardsTemplate, {
|
||||
// header: 'dueCardsModalTitle',
|
||||
// onCloseGoTo: previousPath,
|
||||
// });
|
||||
// } else {
|
||||
BlazeLayout.render('defaultLayout', {
|
||||
headerBar: 'dueCardsHeaderBar',
|
||||
content: dueCardsTemplate,
|
||||
content: 'dueCards',
|
||||
});
|
||||
// }
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue