related to #1245 circled the badge

This commit is contained in:
Matthieu Leproux
2021-07-23 10:43:12 +02:00
parent 4a56b871d0
commit f48ae4a5ef
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -20,10 +20,10 @@ $(document).ready(function () {
$("#pluginList ul i").hide();
$("#pluginList ul").append("<p>" + no_active_plugin +"</p>");
}
$(".adminMenubarCounter").append(nbActivatedPlugins);
$(".badge-number").append(nbActivatedPlugins);
},
error: function () {
$(".adminMenubarCounter").append(0);
$(".badge-number").append(0);
$("#pluginList ul").append("<p>" + error_occured +"</p>");
$("#pluginList ul i").hide();
}
@@ -35,7 +35,7 @@ const error_occured = "{"an error happened"|@translate}";
</fieldset>
<fieldset id="pluginList">
<legend><span class="icon-puzzle icon-green"></span> {'Activated plugin list'|@translate} <span class="adminMenubarCounter"></span></legend>
<legend><span class="icon-puzzle icon-green"></span> {'Activated plugin list'|@translate} <span class="badge-number"></span></legend>
<ul style="font-weight:bold">
<i class="icon-spin6 animate-spin"></i>
</ul>
@@ -56,4 +56,7 @@ const error_occured = "{"an error happened"|@translate}";
font-size: 10px;
}
.badge-number {
color:white;
}
</style>