Use the filter bar filters in the Populate dataset modal
https://redmine.teklia.com/issues/7897
The Populate dataset modal has two options whose values can be set from the currently selected filters in the filter bar, through the appliedFilters
state in the navigation
Vuex store module:
-
Select child elements recursively:
- Matches the Recursive filter on folder navigation
- Opposite of the Top-level filter on project navigation
-
Filter by element types:
- One type can be selected when the Type filter is set
- All folder or non-folder types can be selected if the Folder filter is set
If some filters are set in the filter bar but are not submitted by pressing Enter, then they will not be accessible by any frontend component, so the modal is not expected to pick those up.
If any other filter is set in the filter bar when the modal is opened, a warning should be shown after those two options stating that you have selected some navigation filters that will not be applied when populating a dataset.