kopia lustrzana https://github.com/wagtail/wagtail
Remove 'and publish' from final workflow step approve button if using a nonlinear workflow mode where approval might not actually publish the page
rodzic
f915a69a93
commit
faa57ce0af
|
@ -314,7 +314,7 @@ class PageActionMenu:
|
||||||
for name, label, launch_modal in actions:
|
for name, label, launch_modal in actions:
|
||||||
icon_name = 'edit'
|
icon_name = 'edit'
|
||||||
if name == "approve":
|
if name == "approve":
|
||||||
if is_final_task:
|
if is_final_task and not getattr(settings, 'WAGTAIL_WORKFLOW_REQUIRE_REAPPROVAL_ON_EDIT', False):
|
||||||
label = _("%(label)s and Publish") % {'label': label}
|
label = _("%(label)s and Publish") % {'label': label}
|
||||||
icon_name = 'success'
|
icon_name = 'success'
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue