Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of it looks good, would like to either clarify or change the isLoggedIn function
src/app/header/header.component.ts
Outdated
@@ -23,6 +23,17 @@ export class HeaderComponent implements OnInit { | |||
resetGenAndVisualize() { | |||
this.resetAndRedirect('/visualize-all'); | |||
} | |||
isLoggedIn() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the logic behind this function? A user being logged in shouldn't be dictated by the router url, as anyone can have a link to a URL and suddenly be shown icons as if they were logged in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified isLoggedIn() to check for auth_token availability instead. Let me know if that is a good solution or not
… removes auth token on init
Found logic error with redirect, don't merge please |
Added hover effects, header adjustments depending if you are logged in, and changed graph button on statistics page