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

fix: undo changes on push notifications settings stops working #1599

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

userquin
Copy link
Member

@userquin userquin commented Feb 3, 2023

Vueuse history stops working.

@stackblitz
Copy link

stackblitz bot commented Feb 3, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Feb 3, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 2ff50f5
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/63dd2e4e5c340200084aa76e

@netlify
Copy link

netlify bot commented Feb 3, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 2ff50f5
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/63dd2e4eadff34000879a37d
😎 Deploy Preview https://deploy-preview-1599--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@userquin userquin changed the title fix: undo changes on push notifications stops working fix: undo changes on push notifications settings stops working Feb 3, 2023
Copy link
Member

@patak-dev patak-dev left a comment

Choose a reason for hiding this comment

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

I think we can merge this now. But is there a reason for these settings to work in a different way from all the others? Why are we allowing the user to cancel here? In all other settings screens, we apply the modification and move on. Should we also do the same here?

@patak-dev patak-dev merged commit 6784f3a into main Feb 3, 2023
@patak-dev patak-dev deleted the userquin/fix-push-notification-undo-action branch February 3, 2023 16:01
@userquin
Copy link
Member Author

userquin commented Feb 3, 2023

I think we can merge this now. But is there a reason for these settings to work in a different way from all the others? Why are we allowing the user to cancel here? In all other settings screens, we apply the modification and move on. Should we also do the same here?

All these settings are saved on backend, mastodon rn just send a request per check changed, we allow send all at once: that's why I included undo.

@patak-dev
Copy link
Member

Ah, I see we also do the same for the Profile. Is it costly to do multiple requests? I think it may be better to just do the changes with out the save. But ya, ignore my prev comment because this is now the pattern we use for other things too.

@userquin
Copy link
Member Author

userquin commented Feb 3, 2023

Is it costly to do multiple requests?

Yes, but also a11y, doing requests on check change is not good, we use a form with checkboxes and the policy html select.

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.

2 participants