-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #1862 Disable the profiler panel when there's no data (javieregui…
…luz) This PR was merged into the 1.16.x-dev branch. Discussion ---------- Disable the profiler panel when there's no data This is an alternative to #1861. First, it correctly disables the menu option: ![menu](https://user-images.githubusercontent.com/73419/31683772-224e2522-b37e-11e7-89a1-b183c7183f59.png) Second, it shows an empty panel: ![panel](https://user-images.githubusercontent.com/73419/31683796-2c83cac4-b37e-11e7-8397-766abaaad129.png) ----- The GitHub diff looks awful, but I just added this and indented the existing code, so the changes are minimal: ```twig {% if not collector.isEasyAdminAction %} <div class="empty"> <p>No information available because this route is not related to EasyAdmin.</p> </div> {% else %} ... existing code here ... {% endif %} ``` Commits ------- 925d2fb Disable the profiler panel when there's no data
- Loading branch information
Showing
1 changed file
with
74 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters