From 6568b5103fba6a19d7fa97ad65cd22079ec3c3bb Mon Sep 17 00:00:00 2001 From: Eugen Ciur <eugen@papermerge.com> Date: Sat, 2 Oct 2021 09:31:04 +0200 Subject: [PATCH] add inbox route --- app/components/nav/sidebar.hbs | 4 ++-- app/router.js | 1 + app/routes/.gitkeep | 0 app/templates/inbox.hbs | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 app/routes/.gitkeep create mode 100644 app/templates/inbox.hbs diff --git a/app/components/nav/sidebar.hbs b/app/components/nav/sidebar.hbs index c3cc6ad..c53661b 100644 --- a/app/components/nav/sidebar.hbs +++ b/app/components/nav/sidebar.hbs @@ -11,9 +11,9 @@ </LinkTo> </li> <li> - <a href="#" class="nav-link text-white"> + <LinkTo @route="inbox" class="nav-link text-white"> <i class="bi-inbox me-2"></i>Inbox - </a> + </LinkTo> </li> <li> <LinkTo @route="automates" class="nav-link text-white"> diff --git a/app/router.js b/app/router.js index f2c57b5..2fcdb74 100644 --- a/app/router.js +++ b/app/router.js @@ -10,6 +10,7 @@ export default class Router extends EmberRouter { Router.map(function () { this.route('documents'); + this.route('inbox'); this.route('document', { path: '/document/:document_id' }); this.route('node', { path: '/node/:node_id' }); diff --git a/app/routes/.gitkeep b/app/routes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/app/templates/inbox.hbs b/app/templates/inbox.hbs new file mode 100644 index 0000000..1ac28e9 --- /dev/null +++ b/app/templates/inbox.hbs @@ -0,0 +1 @@ +<h1>Inbox</h1> \ No newline at end of file -- GitLab