|
@@ -14,6 +14,7 @@ FlowRouter.route('/', {
|
|
Session.set('currentCard', null);
|
|
Session.set('currentCard', null);
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
Utils.manageCustomUI();
|
|
@@ -35,6 +36,7 @@ FlowRouter.route('/public', {
|
|
Session.set('currentCard', null);
|
|
Session.set('currentCard', null);
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
Utils.manageCustomUI();
|
|
@@ -59,6 +61,7 @@ FlowRouter.route('/b/:id/:slug', {
|
|
// want to excape every current actions (filters, etc.)
|
|
// want to excape every current actions (filters, etc.)
|
|
if (previousBoard !== currentBoard) {
|
|
if (previousBoard !== currentBoard) {
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
} else {
|
|
} else {
|
|
EscapeActions.executeUpTo('popup-close');
|
|
EscapeActions.executeUpTo('popup-close');
|
|
@@ -117,6 +120,7 @@ FlowRouter.route('/my-cards', {
|
|
name: 'my-cards',
|
|
name: 'my-cards',
|
|
action() {
|
|
action() {
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
// EscapeActions.executeAll();
|
|
// EscapeActions.executeAll();
|
|
EscapeActions.executeUpTo('popup-close');
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
@@ -135,6 +139,7 @@ FlowRouter.route('/due-cards', {
|
|
name: 'due-cards',
|
|
name: 'due-cards',
|
|
action() {
|
|
action() {
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
// EscapeActions.executeAll();
|
|
// EscapeActions.executeAll();
|
|
EscapeActions.executeUpTo('popup-close');
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
@@ -153,6 +158,7 @@ FlowRouter.route('/global-search', {
|
|
name: 'global-search',
|
|
name: 'global-search',
|
|
action() {
|
|
action() {
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
// EscapeActions.executeAll();
|
|
// EscapeActions.executeAll();
|
|
EscapeActions.executeUpTo('popup-close');
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
@@ -179,6 +185,7 @@ FlowRouter.route('/broken-cards', {
|
|
const brokenCardsTemplate = 'brokenCards';
|
|
const brokenCardsTemplate = 'brokenCards';
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
// EscapeActions.executeAll();
|
|
// EscapeActions.executeAll();
|
|
EscapeActions.executeUpTo('popup-close');
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
@@ -205,6 +212,7 @@ FlowRouter.route('/import/:source', {
|
|
Session.set('importSource', params.source);
|
|
Session.set('importSource', params.source);
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
BlazeLayout.render('defaultLayout', {
|
|
BlazeLayout.render('defaultLayout', {
|
|
headerBar: 'importHeaderBar',
|
|
headerBar: 'importHeaderBar',
|
|
@@ -223,6 +231,7 @@ FlowRouter.route('/setting', {
|
|
Session.set('currentCard', null);
|
|
Session.set('currentCard', null);
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -245,6 +254,7 @@ FlowRouter.route('/information', {
|
|
Session.set('currentCard', null);
|
|
Session.set('currentCard', null);
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -266,6 +276,7 @@ FlowRouter.route('/people', {
|
|
Session.set('currentCard', null);
|
|
Session.set('currentCard', null);
|
|
|
|
|
|
Filter.reset();
|
|
Filter.reset();
|
|
|
|
+ Session.set('sortBy', '')
|
|
EscapeActions.executeAll();
|
|
EscapeActions.executeAll();
|
|
},
|
|
},
|
|
],
|
|
],
|