mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-25 18:51:42 +02:00
Hide bidge unless >1 datasets (#643)
This commit is contained in:
@@ -949,7 +949,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
|
|
||||||
if (this.datasetTab) {
|
if (this.datasetTab) {
|
||||||
this.datasetTab.set('data', this.datasets);
|
this.datasetTab.set('data', this.datasets);
|
||||||
this.datasetTab.set('badge', getObjectSize(this.datasets));
|
var datasetSize = getObjectSize(this.datasets);
|
||||||
|
this.datasetTab.set('badge', datasetSize > 1 ? datasetSize : null);
|
||||||
this.datasetTab.$tab.show();
|
this.datasetTab.$tab.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user