mirror of
https://github.com/wekan/wekan.git
synced 2026-01-22 17:26:10 +01:00
The idea is that by displaying card details in a sidebar stuck on the right of the screen, the mouse had to travel too much before interacting with it. I also don’t want to use the Trello solution (modal) on big screens, because I like the ability to interact with the selected card and with the board at the same time (like in a e-mail client). The solution introduced in this commit consist of opening the card detail in a column next to the minicard list. This commit also fix right sidebar members and labels drag and drop.
27 lines
622 B
JavaScript
27 lines
622 B
JavaScript
Router.configure({
|
|
loadingTemplate: 'spinner',
|
|
notFoundTemplate: 'notfound',
|
|
layoutTemplate: 'defaultLayout',
|
|
|
|
onBeforeAction: function() {
|
|
var options = this.route.options;
|
|
|
|
// Redirect logged in users to Boards view when they try to open Login or
|
|
// signup views.
|
|
if (Meteor.userId() && options.redirectLoggedInUsers) {
|
|
return this.redirect('Boards');
|
|
}
|
|
|
|
// Authenticated
|
|
if (! Meteor.userId() && options.authenticated) {
|
|
return this.redirect('atSignIn');
|
|
}
|
|
|
|
// Reset default sessions
|
|
Session.set('error', false);
|
|
|
|
Popup.close();
|
|
|
|
this.next();
|
|
}
|
|
});
|