Closed AtlasMaxima-zz closed 5 years ago
Hi @AtlasMaxima Nice work. There can be addition to this feature. When a person types his comment and then presses submit
. At present, it logs in the user, but the typed comment is lost. We can save it somewhere, possibly local storage
for it to persist. And redirect the user to the same comment page after log in.
@mmcky @AakashGfude This PR has satisfied the following criteria and is currently running on the development site:
cancel
and sign in
options if user is currently not logged in.sign in
page.cancel
.Hi @AtlasMaxima , I am having the following issues at present in the development site :-
1) not redirecting to the previous comment page after logging in. 2) the comment is persistent, but it appears on all the posts comment page (not only in the intended post)
@AakashGfude that's strange because it redirects on https://development-notes.quantecon.org/ for me back to the previous comment page after logging in.
Can you take a screenshot on what you mean by comment persists on all the posts comment page.
Hi @AtlasMaxima , after I signed it redirects me to :-
By comment persists on all the posts comment page i mean that the comment which I typed for some post is visible in all the post's comment page. Example I typed comment for this submission
But it is also visible in this submission's comment page :-
Hey @AtlasMaxima, the code where you redirect to the comment page after signing in, i think it should also be done for new users as well. So, in the code section shown in the screenshot below, allow the same redirect and check also in the case of isNew
resolved through search-conflict
branch
Add modal pop up when users try to comment without being signed in and well ask users to
cancel
orsign in
and redirects user tosign in
page if they want to sign in to make a comment to the submission.