-
Notifications
You must be signed in to change notification settings - Fork 16
feat : reset settings #384
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made small changes suggestions, for the rest, very cool!
src/store/modules/app.js
Outdated
@@ -153,8 +153,18 @@ export const useAppStore = defineStore( | |||
* | |||
* @returns {void} | |||
*/ | |||
const resetSettings = () => { | |||
Object.assign(settings, cloneDeep(SETTINGS)) | |||
const resetSettings = (view, name) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function JSDoc must reflect the new parameters. Although I don't think we use the name
anywhere in the code yet so we can probably remove that parameter :)
Co-authored-by: Pierre Romera Zhang <[email protected]>
Linked to ICIJ/datashare#1785

Each page settings can be reset to default directly from the current view