-
Notifications
You must be signed in to change notification settings - Fork 4
Header.js
Simranjyot Gill edited this page Dec 26, 2017
·
1 revision
- Contains UI for the top navbar.
- We show toasts in various situations such as in-app notifications, or when video call fails. This file contains the container for the toasts. As navbar will be always visible no matter what, hence we decided to add toast container in this file. And as toasts use absolute positioning thus the position of toast container in DOM doesn't matter.
- During logout it hides presence of the user by making
/users/$userid/publicFields/isConnected
to false. - It also changes the url so as to display to login screen by pushing empty path in browser history.
- We can remove this code in future when we are properly handling urls such that if user has not logged in, no matter what url he types we will always show login screen.