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

feat(next): adds support for resetting preferences #10304

Merged
merged 9 commits into from
Jan 3, 2025

Conversation

akhrarovsaid
Copy link
Contributor

@akhrarovsaid akhrarovsaid commented Jan 2, 2025

Addresses #9949. This PR adds a button to the /account view which allows users to reset their preferences on-demand. This is to that editors can quickly reset their preferences via the admin UI without the need of accessing the db directly, something that was not possible before. To do this, there is a new button at the bottom of the account view which performs a standard DELETE request using the REST API to the 'payload-preferences' collection.

Demo: Posts-reset-prefs--Payload.webm

@jacobsfletch
Copy link
Member

jacobsfletch commented Jan 2, 2025

@akhrarovsaid this is great. Much needed. I left one comment within the modal. Then we might also want to add a quick test for this as well within admin > general. Could be very simple.

@jacobsfletch jacobsfletch merged commit 1cade17 into payloadcms:main Jan 3, 2025
70 checks passed
@jacobsfletch
Copy link
Member

Good work @akhrarovsaid

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

Successfully merging this pull request may close these issues.

3 participants