No help message when an element type must be selected to import files
- Create a new project.
- Change the slug of the default
page
type to anything else. - Open the file import page.
- Upload a file.
- Select the file.
- The Import button is disabled with no indication why.
- Get confused.
- Open the Advanced settings dropdown.
- No element type is selected, and nothing tells you to select one.
- Cry.
When the project has no folder
folder type, and has more than one folder type, then the advanced settings are opened automatically and the help text is displayed:
The code that causes this issue has an… interesting approach to conditions: https://gitlab.com/arkindex/frontend/-/commit/204dbe2c0#6db2fbc45af8a0984e40cdfb9135565725958349_217_222