diff --git a/app/appRoutes.js b/app/appRoutes.js index 595cc0e..ea5caeb 100644 --- a/app/appRoutes.js +++ b/app/appRoutes.js @@ -3,6 +3,7 @@ import { homeView } from './views/home'; import { aboutView } from './views/about'; import { loginView } from './views/login'; import { searchView } from './views/search'; +import { shelvesView } from './views/shelves'; import { errorView } from './views/404'; export const appRoutes = (app) => { @@ -16,5 +17,7 @@ export const appRoutes = (app) => { app.route('/search', (state, emit) => globalView(state, emit, searchView)); + app.route('/shelves', (state, emit) => globalView(state, emit, shelvesView)); + app.route('/404', (state, emit) => globalView(state, emit, errorView)); } diff --git a/app/views/global.js b/app/views/global.js index bf51cfa..4483f76 100644 --- a/app/views/global.js +++ b/app/views/global.js @@ -29,6 +29,7 @@ export const globalView = (state, emit, view) => { ${ state.isLoggedIn === true ? [ + html`${i18n.__('global.menu_shelves')}`, html`${i18n.__('global.menu_account')}`, html`${i18n.__('global.menu_logout')}`, ]