[WebProfilerBundle] Disable messenger panel if needed

This commit is contained in:
Roland Franssen 2018-10-21 14:56:03 +02:00
parent 4d757b5382
commit 2c4cb06f0e

View File

@ -30,7 +30,7 @@
{% endblock %}
{% block menu %}
<span class="label {{ collector.exceptionsCount ? 'label-status-error' }}">
<span class="label{{ collector.exceptionsCount ? ' label-status-error' }}{{ collector.messages is empty ? ' disabled' }}">
<span class="icon">{{ include('@WebProfiler/Icon/messenger.svg') }}</span>
<strong>Messages</strong>