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

Persist update notification on reload #839

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

stefanbuck
Copy link
Member

Recently, I was talking to friend and he made me aware of an issue with the update notification. The update notification appears immediately whenever the extension updates. If a user navigates to another GitHub page or performs a page reload, the notification is gone forever. With this change we persist the notification state until a user interaction happens (either close or following the link)

@@ -24,6 +24,8 @@ export const set = async (key, value) => {
[key]: value,
};

Object.assign(store, data);
Copy link
Member Author

Choose a reason for hiding this comment

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

This change is needed to reflect a set call immediately. Before this was delayed until OctoLinker got invoked another time.

@stefanbuck stefanbuck merged commit fdb9e46 into OctoLinker:master Mar 11, 2020
@stefanbuck stefanbuck deleted the persist-notification branch March 11, 2020 18:19
@staabm
Copy link

staabm commented Apr 1, 2020

it seems in FF the notitifaction does not disappear after clicking its "X"

edit: to be more precise: it disappears, but reappears on the next page load

@stefanbuck
Copy link
Member Author

Thanks for reporting, I'll look into this soon!

In the meantime, the Addons preference settings allows you to disable update notifications

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants