docbrown/app/javascript/packs/admin
Ridhwana 45e0ea046d
Only show the "Targeted Tags Field" when the selected placement area is "Below the comment section" (#18644)
* feat: Add a pack file that pulls in the MultiSelect Component

* feat: move the tags to its own component

* save tags

* refactor: create a getCSRFToken function in the packs files so that it can be used in the admin

* feat: import the new module in request.js

* feat: remove unnecessary id

* feat: first pass of csrf token test

* chore: update the test

* fix: csrf token

* feat: hide the enw functionality behinda  feature flag

* fix: loading form twice

* refactor: import for csrftoken

* chore: update the description of the function

* feat: use acts_on_taggable to craete a relationship between display_ad and tag

* feat: add a tag field to the display_ad form

* feat: add the selected tags from the multiselect autocomplete component to the input text field that references the tag_list

* feat: add the tag_list to the controller so that we can save it to the db with the display ad parameters

* feat: pull out the tag validation from the article and the display_ads into a concern

* feat: write soem tests for validating the tag on the display_ads model

* feat: add the tag_list as a hidden field

* feat: set the selected tags on edit

* feat: add a js class for the placement area

* feat: use the change in the dropdown to determine whether we show the tags field dropdown

* refactor: rename and brak up fucntions

* feat: show the tags field if the value of the placement area is already set

* fix: move if statement out of the change event

* feat: hide tags field and clear the tag list

* refactor: delete the display ads

* tests: ensure that we test the toggle

* fix:ensure that the tags on the hidden field show up as a string in the input field

* feat: update the jsdoc

* fix: no need to replace space with comma since we showing as string in form

* feat: update the name of the label

* fix: add hidden back
2022-10-31 17:25:57 +02:00
..
config Improve the UX of the SMTP Section (#16223) 2022-02-15 18:40:14 +02:00
users Remove Member Index View Feature Flags (#18191) 2022-07-27 08:57:07 +01:00
creatorOnboarding.jsx Use the Preact ColorPicker in creator onboarding (#16731) 2022-03-03 08:22:10 +00:00
displayAds.jsx Only show the "Targeted Tags Field" when the selected placement area is "Below the comment section" (#18644) 2022-10-31 17:25:57 +02:00
editUser.jsx Reusable user admin modals (#17763) 2022-06-02 09:52:26 -06:00
flashMessages.js Filter admin users by status (#16238) 2022-03-02 11:13:59 -05:00
overview.jsx Admin analytics (#16528) 2022-03-28 21:51:51 +02:00