Add type="button" to 'set privacy button' (#6882)

pull/6891/head
Sagar Agarwal 2021-03-08 01:39:07 +05:30 zatwierdzone przez Matt Westcott
rodzic f9d1ec0bf7
commit 400bc57536
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -20,6 +20,7 @@ Changelog
* Fix: Move labels above the form field in the image format chooser, to avoid styling issues at tablet size (Helen Chapman)
* Fix: `{% include_block with context %}` now passes local variables into the block template (Jonny Scholes)
* Fix: Fix pagination on 'view users in a group' (Sagar Agarwal)
* Fix: Prevent page privacy menu from being triggered by pressing enter on a char field (Sagar Agarwal)
2.12.3 (05.03.2021)

Wyświetl plik

@ -39,6 +39,7 @@ Bug fixes
* Show 'required' asterisks for blocks inside required StreamFields (Matt Westcott)
* Make image chooser "Select format" fields translatable (Helen Chapman, Thibaud Colas)
* Fix pagination on 'view users in a group' (Sagar Agarwal)
* Prevent page privacy menu from being triggered by pressing enter on a char field (Sagar Agarwal)
Upgrade considerations

Wyświetl plik

@ -20,7 +20,7 @@
</p>
{% if page.id and page_perms.can_set_view_restrictions %}
<button data-url="{% url 'wagtailadmin_pages:set_privacy' page.id %}" class="button action-set-privacy">
<button type="button" data-url="{% url 'wagtailadmin_pages:set_privacy' page.id %}" class="button action-set-privacy">
{% trans "Set page privacy" %}
</button>
{% endif %}