diff --git a/app/controllers/login.js b/app/controllers/login.js index 7aa216744dbe8278ce826c488f639cd7b03661c7..2463c00a2ef4d2ee5ccfc3c8a6f02a0987b9d0a3 100644 --- a/app/controllers/login.js +++ b/app/controllers/login.js @@ -27,6 +27,7 @@ export default class LoginController extends Controller { if (this.session.isAuthenticated) { // What to do with all this success? + this.transitionToRoute('authenticated.index'); } } diff --git a/app/router.js b/app/router.js index 61086cddb8c67a5214e0e9863887d806c9471f53..2914d563901314efcc997953edfc5d0585e50b21 100644 --- a/app/router.js +++ b/app/router.js @@ -7,8 +7,6 @@ export default class Router extends EmberRouter { } Router.map(function () { - this.route('login'); - this.route('authenticated', { path: '' }, function() { this.route('documents'); this.route('inbox'); @@ -42,5 +40,6 @@ Router.map(function () { }); }); + this.route('login'); this.route('not-found', { path: '/*path' }); }); diff --git a/app/routes/authenticated/index.js b/app/routes/authenticated/index.js index 781afc27610aeb5adba1a0bd8990f44477af89b5..0d87799bc3b3370b3bac36d265979a65a541149f 100644 --- a/app/routes/authenticated/index.js +++ b/app/routes/authenticated/index.js @@ -1,10 +1,12 @@ -import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; +import BaseRoute from 'papermerge/base/routing'; -export default class IndexRoute extends Route { +export default class IndexRoute extends BaseRoute { + /* @service store; async model() { return this.store.findAll('node'); } + */ } diff --git a/app/templates/authenticated/index.hbs b/app/templates/authenticated/index.hbs index dc582757cb9c650c76e2510ae0cad1ab992414ba..603c3bc4af573dfa6b3596fae0081f445a1f4445 100644 --- a/app/templates/authenticated/index.hbs +++ b/app/templates/authenticated/index.hbs @@ -1,2 +1,2 @@ -<Breadcrumb /> -<Nodes @nodes={{@model}} /> \ No newline at end of file + +Documents and Folders will be displayed here! \ No newline at end of file