Problem/Motivation
On the Single Content Sync import page
/admin/content/import,
when using the Gin admin theme, the primary submit button is incorrectly placed into the “More actions” dropdown, even though the form only contains a single submit action.
This happens unless the submit button array key is explicitly named submit.
Steps to reproduce
- Enable Gin admin theme
- Go to /admin/content/import
- Observe that the Import button appears under the Gin More actions dropdown.
Proposed resolution
The Import button should be rendered as the primary action button, visible without opening More actions, since:
it is the only submit button
it is marked as #button_type => 'primary'
Comments
Comment #2
mr.york commentedPatch attached.
Comment #3
mr.york commentedComment #4
vistree commentedSame problem for us with single_content_sync and Gin as backend theme - the "Import" button is hidden in the more actions dropdown. Patch from #2 works fine and solves the problem.
Comment #6
nginex commented