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

Refactor CreateOrEditTask.vue component #28

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Refactor CreateOrEditTask.vue component #28

merged 2 commits into from
Oct 15, 2024

Conversation

stephdl
Copy link
Collaborator

@stephdl stephdl commented Oct 7, 2024

This pull request refactors the CreateOrEditTask.vue component to prevent direct modification of the parent task object. Instead, local variables within the component are used for edits, and if the page is exited without saving, those values are cleared. These changes ensure the component works correctly and that the fields are reset when the modal is hidden.

NethServer/dev#7052

@stephdl stephdl force-pushed the fixGhostProps branch 2 times, most recently from 2bbb9aa to df2d9d9 Compare October 7, 2024 12:43
@@ -241,6 +241,17 @@ export default {
loading: {
createTask: false,
},
localuser: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

JS variables should use camelCase, localuser and the following lines use no case or snake_case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

should be good @andre8244

Copy link
Contributor

@andre8244 andre8244 left a comment

Choose a reason for hiding this comment

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

❤️

@stephdl stephdl merged commit 4c13c47 into main Oct 15, 2024
4 checks passed
@stephdl stephdl deleted the fixGhostProps branch October 15, 2024 07:18
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