Skip to content
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

remove page reload when saving highlights #711

Conversation

MMSaleh-FT
Copy link
Contributor

changes to x-gift-article component

  • remove the page reload when saving highlights
  • dispatch events when saving highlights

ticket

@MMSaleh-FT MMSaleh-FT requested a review from a team as a code owner June 12, 2023 15:22
@next-team next-team temporarily deployed to x-dash-entst-513-sharin-cg3pxu June 12, 2023 15:22 Inactive
localStorage.setItem('showSuccessSavedMessage', 'true')
location.href = url.toString()
dispatchEvent(new CustomEvent('removeHighlightsSave'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why are we dispatching this event?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this event a is used in the editor package to remove the the save highlights message when the highlights are saved in the article modal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohhh interesting! Nice!

@jkerr321 jkerr321 self-requested a review June 13, 2023 08:37
@MMSaleh-FT MMSaleh-FT requested a review from jkerr321 June 13, 2023 08:41
Copy link
Contributor

@AniaMakes AniaMakes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving, but with a caveat that I have very little context of this work (even after reading the ticket). It looks like ENTST people know what they want to do, and @jkerr321 approved already - so I'm going to add my token 👍🏻

@jkerr321 jkerr321 merged commit 785b217 into main Jun 15, 2023
@jkerr321 jkerr321 deleted the ENTST-513-sharing-highlights-page-reloads-when-uses-saves-highlights-via-the-share-modal branch June 15, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants