8000 bug #28942 [WebProfilerBundle] Disable messenger panel if needed (ro0NL) · symfony/symfony@e0c6049 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0c6049

Browse files
committed
bug #28942 [WebProfilerBundle] Disable messenger panel if needed (ro0NL)
This PR was merged into the 4.2-dev branch. Discussion ---------- [WebProfilerBundle] Disable messenger panel if needed | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Before: ![image](https://user-images.githubusercontent.com/1047696/47267243-94bffa00-d541-11e8-9a77-ca93d57629f3.png) After ![image](https://user-images.githubusercontent.com/1047696/47267248-a4d7d980-d541-11e8-81d2-20e5957970ba.png) Commits ------- 2c4cb06 [WebProfilerBundle] Disable messenger panel if needed
2 parents 07c46a2 + 2c4cb06 commit e0c6049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{% endblock %}
3131

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

0 commit comments

Comments
 (0)
0