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

Added: close button in the tag modal (#85zrvzfqv) #198

Merged
merged 3 commits into from
Apr 20, 2023
Merged

Added: close button in the tag modal (#85zrvzfqv) #198

merged 3 commits into from
Apr 20, 2023

Conversation

alsoK2maan
Copy link

@alsoK2maan alsoK2maan commented Apr 10, 2023

Related Issues

Closes #193

Short Description and Why It's Useful

Added a close/check button to save the applied tag filters in the modal. Previously, the tags were applied directly on checking/selecting but now the changes will take effect after clicking the check button.

Screenshots of Visual Changes before/after (If There Are Any)

Screencast.from.10-04-23.05.45.47.PM.IST.webm

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

src/components/ProductFilterModal.vue Outdated Show resolved Hide resolved
src/store/modules/product/actions.ts Outdated Show resolved Hide resolved
dispatch('updateQuery')
},

async updateAppliedFilterOperator({ commit, state, dispatch }, payload) {
const appliedFilters = JSON.parse(JSON.stringify((state.appliedFilters as any)[payload.type][payload.id]))
appliedFilters.operator = payload.value;
commit(types.PRODUCT_FILTER_UPDATED, {id: payload.id, type: payload.type, value: appliedFilters})
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change is needed?
This action should only allow operator change. With this change, this action is updating Applied Filters like the above action with an exception of querying on condition

Copy link
Author

Choose a reason for hiding this comment

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

Updated sir

@adityasharma7 adityasharma7 merged commit 0c69bdd into hotwax:main Apr 20, 2023
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.

Add close button to tag modal
3 participants