This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
[SD-231] Moved states js pattern support to global place for all nodes. #234
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA
https://digital-vic.atlassian.net/browse/SD-231
Issue
Drupal states pattern was not working for promotion and navigation card component for other content types.
Changes
Removed the JS that has been used only for landing page and moved it to tide_core to get loaded for all content types node.
Related PR
dpc-sdp/tide_core#511
Notes
Initially it was targeting only landing page as the component was only added for landing pages. Now the component is being used for publication page and it might get used for other content types in the future. So loading it for all node edit forms from tide_core.