Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added navigation guard for Dashboard component (fixes #231) #232

Conversation

stanislawK
Copy link
Contributor

Try go to http://localhost:8080/dasboard. You should be redirected to /login path.
Populate database with command make populate_database.
Login on http://localhost:8080/login with username from terminal output after populating db, and default password: pass123.
Then navigate to http://localhost:8080/dasboard

@@ -4,13 +4,21 @@ import VueRouter from 'vue-router';
import HomePage from './components/HomePage.vue';
import Login from './components/Login.vue';
import Dashboard from './components/Dashboard.vue';
import store from './store/index';
Copy link
Member

@Maciek246 Maciek246 Jan 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is only one 'index.js' file in this directory, JS should look for by default:

Suggested change
import store from './store/index';
import store from './store';

Please verify that 👆

@w1stler w1stler merged commit 5105368 into CodeForPoznan:master Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants