Skip to content

Commit

Permalink
fix: ELASTICMS-129 don't detach
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Oct 15, 2023
1 parent 9e1159d commit f44275d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions demo/skeleton/template_ems/dashboard/json_menu_nested.twig
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@
<li>{{ template.block('jmn_button_item_edit', _context)|raw }}</li>
{% if item.children|length == 0 %}
<li>
{% if item.type == 'page' and page and pageInfo %}
<button class="btn-detach-page" data-item-id="{{ item.id }}" data-page-id="{{ page.id }}">Detach page</button>
{% else %}
{{ template.block('jmn_button_item_delete', _context)|raw }}
{% endif %}
{{ template.block('jmn_button_item_delete', _context)|raw }}
</li>
{% endif %}
{%- endblock jmn_button_item_more_menu -%}
Expand Down Expand Up @@ -242,4 +238,4 @@
{{ data.source._finalization_datetime|default ? data.source._finalization_datetime|date("d/m/Y (H:i)") : "N.A." }}
</div>
{%- endverbatim -%}
{% endblock table_existing_column_last_update %}
{% endblock table_existing_column_last_update %}

0 comments on commit f44275d

Please sign in to comment.