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
261 logout pop up #427
261 logout pop up #427
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.
Minor comments from my side, mostly regarding translation.
import { reverseObject } from '../services/reverseObject'; | ||
|
||
const { user } = store.state; | ||
const { user } = store ? store.state : { user: undefined }; |
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.
const { user } = store ? store.state : { user: undefined }; | |
const { user } = store && store.state ? store.state : { user: undefined }; |
?
Co-Authored-By: Artur Tamborski <tamborskiartur@gmail.com>
…m into 261-logout-pop-up
I have a question - should this modal be displayed only when user is offline? It's not described as that in the linked issue (although there isn't much detail either), so maybe we should discuss this? Other thing - I'm not an UX guy, don't know much about that but I thought it would be nice to have the buttons separated from each other, just as we did in DriveFromView with Submit and Reset. |
Confirmed with Client, that we need displaying pop up when user is online as well. |
No need to, I think that all work can be done in this PR, as it's still open :) |
In case this was lost somehow: we'd love to display the pop-up developed here no matter the network status (online/offline). Currently it works so it's shown only when user is offline - this can be surprising when the user temporarily gains network connection. Please modify the PR such that the pop-up always pops up - thanks! |
Sorry for the delay but I was unable to get on this. I think in the next meeting I will end this as it sounds easy to implement. |
This should be ok now |
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.
Sorry for not reviewing it earlier. Everything looks fine, I've tested it and it works just the way we wanted it, thanks for this Pull Request :)
I added modal that will show the warning to user attempting logout on offline.
I also moved routes to a separate file because there were problem with import, that finally wasn't needed. But I think it's ok to leave it that way.