KristinJJ / MovieMeetUp

MovieMeetUp: A group movie recommender built during CodeDay Labs 2021
https://www.moviemeetup.com
GNU General Public License v3.0
4 stars 1 forks source link

Mg 125 topnav for loggedin #134

Closed ZenSorcere closed 3 years ago

ZenSorcere commented 3 years ago

Closes #117 #130 #132 This addresses Issue #125 (Update Topnav to not show for non-logged in users), as well as includes updates for Cognito login/logout button URLs.

As a developer, I want to have a TopNav button only display for users who are logged in and would need to access the home page and the build event page. Non-logged in users visiting the intro, rankings, and final rankings pages do not need a topnav button that takes them to a home page they have to log in to see.

The solution for this currently is to remove the topnav component from app.component.ts, and hard code it directly into the home.component.html and event.componenthtml pages.

Addtionally, this PR also includes finalized congnito urls for the login and logout buttons, including env variables that can be referenced. this makes it so the env files are the only thing changing between dev and prod, and the url code remains the same for each.

To verify: