mirror of
https://github.com/Febbweiss/ProjectDeployer.git
synced 2026-03-04 22:25:38 +00:00
Optim: subscriptions managed by router
This commit is contained in:
@@ -7,5 +7,13 @@ Router.map(function () {
|
||||
this.route('home', {
|
||||
path: '/',
|
||||
});
|
||||
this.route('management');
|
||||
this.route('management', function() {
|
||||
this.subscribe('projects').wait();
|
||||
|
||||
if (this.ready()) {
|
||||
this.render();
|
||||
} else {
|
||||
this.render('Loading');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user