mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
PHRAS-2796_actionbar-enhancements_4.1
fix (contextual menu was rendered in toolbar)
This commit is contained in:
@@ -141,6 +141,7 @@
|
|||||||
{% if plugins.actionbar is not empty %}
|
{% if plugins.actionbar is not empty %}
|
||||||
{% for plugin in plugins.actionbar %}
|
{% for plugin in plugins.actionbar %}
|
||||||
{% for k, menu in plugin.getActionBar() %}
|
{% for k, menu in plugin.getActionBar() %}
|
||||||
|
{% if k != '_context_' %}
|
||||||
{% set m = menus[k]|default([]) %}
|
{% set m = menus[k]|default([]) %}
|
||||||
{% for action in menu %}
|
{% for action in menu %}
|
||||||
{% set m = m|merge([{
|
{% set m = m|merge([{
|
||||||
@@ -150,6 +151,7 @@
|
|||||||
%}
|
%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% set menus = menus|merge({(k) : m}) %}
|
{% set menus = menus|merge({(k) : m}) %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user