kopia lustrzana https://github.com/wagtail/wagtail
Hide dropdown menu on click in awaiting review dashboard panel
rodzic
b3846a63fc
commit
a2b0d04563
client/src/entrypoints/admin
wagtail/admin/templates/wagtailadmin/home
|
@ -22,7 +22,6 @@ function ActivateWorkflowActionsForDashboard(csrfToken) {
|
|||
(e) => {
|
||||
// Stop the button from submitting the form
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if ('launchModal' in buttonElement.dataset) {
|
||||
// eslint-disable-next-line no-undef
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
{% if actions %}
|
||||
<ul class="actions">
|
||||
<li>
|
||||
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
|
||||
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") hide_on_click=True %}
|
||||
{% for action_name, action_label, modal in actions %}
|
||||
<button data-workflow-action-url="{% url state.workflow_action_url_name obj.pk|admin_urlquote action_name task_state.id %}" {% if modal %}data-launch-modal{% endif %}>{{ action_label }}</button>
|
||||
{% endfor %}
|
||||
|
|
Ładowanie…
Reference in New Issue