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

Feature/JA-122 AdSearchForm component #117

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Zjyslav
Copy link
Collaborator

@Zjyslav Zjyslav commented Jun 28, 2024

I replaced old search form partial view with a Blazor component. Now search fields are disabled until corresponding checkbox is enabled.
Because AdSearchCriteriaViewModel needed to cross MVC-WASM boundary, I moved it to .Blazor project and I pass it to the component serialized as JSON.
When it comes to consuming the form, I realized I don't need to read any of the visible inputs of the form when search criteria are submitted - I just put a hidden input with view model serialized as JSON and each time anything is changed in the form, this JSON is updated. In Browse/Search I deserialize it and pass it forward as previously.

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.

None yet

1 participant