Skip to content

Commit

Permalink
Stop initially collapsing plugins with errors in them (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jun 7, 2024
1 parent 45a398b commit 2714eec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Next version

- Changed the plugin buttons grid to allow collapsing empty rows.
- Disabled dragging plugins when changes are not allowed anyway.
- Stopped collapsing plugin initially when they contain errors.


7.0 (2024-05-31)
Expand Down
5 changes: 4 additions & 1 deletion content_editor/static/content_editor/content_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,10 @@ django.jQuery(($) => {
const collapsed = state.collapsed.includes(
qs(".field-ordering input", inline).value,
)
inline.classList.toggle("collapsed", collapsed)
inline.classList.toggle(
"collapsed",
collapsed && !inline.querySelector(".errorlist"),
)
},
)

Expand Down

0 comments on commit 2714eec

Please sign in to comment.