Skip to content

No help message when an element type must be selected to import files

  1. Create a new project.
  2. Change the slug of the default page type to anything else.
  3. Open the file import page.
  4. Upload a file.
  5. Select the file.
  6. The Import button is disabled with no indication why.
  7. Get confused.
  8. Open the Advanced settings dropdown.
  9. No element type is selected, and nothing tells you to select one.
    image
  10. 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:

image

The code that causes this issue has an… interesting approach to conditions: https://gitlab.com/arkindex/frontend/-/commit/204dbe2c0#6db2fbc45af8a0984e40cdfb9135565725958349_217_222