plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Link login modal to edit wiki button

Open jonxuxu opened this issue 7 years ago • 17 comments

Problem

On wiki posts such as this https://publiclab.org/wiki/environmental-estrogen-testing there is an option to edit the page:

image

đŸ“‹Solution

Currently when clicked, the user is directed to a login page. We want the button to open a login modal if the user is not logged in. /app/views/wiki/_header.html.erb

jonxuxu avatar Dec 10 '18 07:12 jonxuxu

@SidharthBansal Claimed and resolved in here: https://github.com/publiclab/plots2/pull/4258

okonek avatar Dec 10 '18 16:12 okonek

@okonek does it open the edit prompt once the user is logged in?

jonxuxu avatar Dec 10 '18 16:12 jonxuxu

No, it doesn't, but I couldn't find a way that I could without editing the controller's code.

okonek avatar Dec 10 '18 16:12 okonek

Check #4239, I'm trying to do something similar too

jonxuxu avatar Dec 10 '18 16:12 jonxuxu

Ok, I'll check it out in a minute.

okonek avatar Dec 10 '18 16:12 okonek

Well, after looking at the @kevinzluo code in this PR, I still have no idea how he managed to do that. Maybe he could help us himself?

okonek avatar Dec 14 '18 22:12 okonek

Hi @okonek . Please take a look at my comment here:https://github.com/publiclab/plots2/pull/4228#issuecomment-446430051

kevinzluo avatar Dec 15 '18 02:12 kevinzluo

Hi @SidharthBansal, is this issue solved?

oorjitchowdhary avatar Dec 27 '18 16:12 oorjitchowdhary

All the issues which are open of OAuth milestone are not solved that is why they are open. I am core mentor for OAuth milestone. So, I will be closing all the issues whenever they will be needed. Thanks.

SidharthBansal avatar Dec 27 '18 19:12 SidharthBansal

I think for this issue's PR #4258 .. we just need the requireLogin class I think

oorjitchowdhary avatar Dec 27 '18 19:12 oorjitchowdhary

Yeah, @okonek is working on it. Please read the conversation fully to avoid confusions.

SidharthBansal avatar Dec 27 '18 19:12 SidharthBansal

Yes, I understand. Thank you for the guidance and sorry for the haste approach

oorjitchowdhary avatar Dec 27 '18 19:12 oorjitchowdhary

No problem, mentors are there to help you.

SidharthBansal avatar Dec 27 '18 19:12 SidharthBansal

@Dsxv you can do this too if you want. You were having trouble in finding issues so just telling you some issues.

SidharthBansal avatar Jan 10 '19 16:01 SidharthBansal

@SidharthBansal Thankyou So much for help ! But isn't @okonek working on it?

Dsxv avatar Jan 10 '19 17:01 Dsxv

He is not online since many days so you can work on it.

On Thu, Jan 10, 2019, 11:07 PM Pawan Shukla <[email protected] wrote:

@SidharthBansal https://github.com/SidharthBansal Thankyou So much for help ! But isn't @okonek https://github.com/okonek working on it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4242#issuecomment-453185489, or mute the thread https://github.com/notifications/unsubscribe-auth/AUACQ_OHFEZvG_Ezl-XZ33eytasVjnvJks5vB3pHgaJpZM4ZK0Wg .

SidharthBansal avatar Jan 10 '19 18:01 SidharthBansal

@Dsxv how is it going here?

SidharthBansal avatar Jan 14 '19 08:01 SidharthBansal