Skip to content

Commit 4dde192

Browse files
committed
* If doing a fwreinit on the visualizer, the current profiler was still being show even thought it was empty. Add an empty check to avoid the big bang!
1 parent 34efc04 commit 4dde192

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

views/main/panels/requestTrackerPanel.cfm

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,37 @@
2323
ColdBox Request Tracker
2424

2525
<!--- If not expanded and not in visualizer mode --->
26-
<span
27-
x-show="!panelOpen && !isVisualizer"
28-
x-cloak
29-
x-transition
30-
>
31-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
32-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
33-
</svg>
26+
<cfif !args.currentProfiler.isEmpty()>
27+
<span
28+
x-show="!panelOpen && !isVisualizer"
29+
x-cloak
30+
x-transition
31+
>
32+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
33+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
34+
</svg>
3435

35-
#args.currentProfiler.requestData.method#
36+
#args.currentProfiler.requestData.method#
3637

37-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
38-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
39-
</svg>
38+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
39+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
40+
</svg>
4041

41-
#args.currentProfiler.coldbox.event#
42+
#args.currentProfiler.coldbox.event#
4243

43-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
44-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
45-
</svg>
44+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
45+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
46+
</svg>
4647

47-
#args.currentProfiler.response.statusCode#
48+
#args.currentProfiler.response.statusCode#
4849

49-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
50-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
51-
</svg>
50+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
51+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
52+
</svg>
5253

53-
#numberFormat( args.currentProfiler.executionTime )# ms
54-
</span>
54+
#numberFormat( args.currentProfiler.executionTime )# ms
55+
</span>
56+
</cfif>
5557
</div>
5658
</div>
5759
</div>

0 commit comments

Comments
 (0)