Skip to content

Commit

Permalink
Merge pull request #93 from vipulnarang95/bugfix/pageadmin-edit-close…
Browse files Browse the repository at this point in the history
…-side-frame

Fix editlink in pageadmin to close sideframe
  • Loading branch information
vipulnarang95 authored Jun 6, 2024
2 parents e340b2d + 6429474 commit e689dbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog
=========

Unreleased
=================
* Fixed edit link in pageadmin to close sideframe

1.7.0 (2024-05-16)
==================
Expand Down
3 changes: 2 additions & 1 deletion djangocms_pageadmin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ def _get_edit_link(self, obj, request, disabled=False):
args=(version.pk,),
)

# close sideframe as edit will always be on page and not in sideframe
return render_to_string(
"djangocms_pageadmin/admin/icons/edit.html",
{"url": url, "disabled": disabled, "get": False},
{"url": url, "disabled": disabled, "get": False, "keepsideframe": False},
)

def _get_duplicate_link(self, obj, request, disabled=False):
Expand Down

0 comments on commit e689dbc

Please sign in to comment.