8000 bug #15744 [WebProfilerBundle ] Removes ajax animation in sf-toolbar-… · Seldaek/symfony@224b19b · GitHub
[go: up one dir, main page]

Skip to content

Commit 224b19b

Browse files
committed
bug symfony#15744 [WebProfilerBundle ] Removes ajax animation in sf-toolbar-block-ajax (oyepez003)
This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle ] Removes ajax animation in sf-toolbar-block-ajax | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a The change removes the animation in the "sf-toolbar-block-ajax" when the request state was "ok". Commits ------- 8497ad7 [WebProfilerBundle ] Removes the ajax animation in | sf-toolbar-block-ajax
2 parents 14c538e + 8497ad7 commit 224b19b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@
179179
var className = 'sf-toolbar-ajax-requests sf-toolbar-value';
180180
requestCounter[0].className = className;
181181
182-
if (state == 'error') {
182+
if (state == 'ok') {
183+
Sfjs.removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');
184+
Sfjs.removeClass(ajaxToolbarPanel, 'sf-toolbar-status-red');
185+
} else if (state == 'error') {
183186
Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');
184187
} else {
185188
Sfjs.addClass(ajaxToolbarPanel, 'sf-ajax-request-loading');

0 commit comments

Comments
 (0)
0