kopia lustrzana https://github.com/wagtail/wagtail
Add next_url to Edit and Add Child page-listing buttons (#11170)
rodzic
8c22e594a8
commit
e16614bce8
|
@ -5,6 +5,7 @@ Changelog
|
|||
~~~~~~~~~~~~~~~~
|
||||
|
||||
* Added `search_index` option to StreamField blocks to control whether the block is indexed for searching (Vedant Pandey)
|
||||
* Remember previous location on returning from page add/edit actions (Robert Rollins)
|
||||
* Fix: Update system check for overwriting storage backends to recognise the `STORAGES` setting introduced in Django 4.2 (phijma-leukeleu)
|
||||
* Fix: Prevent password change form from raising a validation error when browser autocomplete fills in the "Old password" field (Chiemezuo Akujobi)
|
||||
* Fix: Ensure that the legacy dropdown options, when closed, do not get accidentally clicked by other interactions wide viewports (CheesyPhoenix, Christer Jensen)
|
||||
|
|
|
@ -15,6 +15,7 @@ depth: 1
|
|||
### Other features
|
||||
|
||||
* Added `search_index` option to StreamField blocks to control whether the block is indexed for searching (Vedant Pandey)
|
||||
* Remember previous location on returning from page add/edit actions (Robert Rollins)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
|
|
@ -375,10 +375,12 @@ class PageListingSortMenuOrderButton(PageListingButton):
|
|||
|
||||
@hooks.register("register_page_listing_more_buttons")
|
||||
def page_listing_more_buttons(page, user, next_url=None):
|
||||
yield PageListingEditButton(page=page, user=user, priority=2)
|
||||
yield PageListingEditButton(page=page, user=user, next_url=next_url, priority=2)
|
||||
yield PageListingViewDraftButton(page=page, user=user, priority=4)
|
||||
yield PageListingViewLiveButton(page=page, user=user, url=page.url, priority=6)
|
||||
yield PageListingAddChildPageButton(page=page, user=user, priority=8)
|
||||
yield PageListingAddChildPageButton(
|
||||
page=page, user=user, next_url=next_url, priority=8
|
||||
)
|
||||
yield PageListingMoveButton(page=page, user=user, priority=10)
|
||||
yield PageListingCopyButton(page=page, user=user, next_url=next_url, priority=20)
|
||||
yield PageListingDeleteButton(page=page, user=user, next_url=next_url, priority=30)
|
||||
|
|
Ładowanie…
Reference in New Issue