Added operation counts to categories and ops list with option to hide by default for categories.

This commit is contained in:
n1474335 2024-05-13 17:48:09 +01:00
parent bbebba6481
commit 57c8c6dbc6
No known key found for this signature in database
GPG key ID: D15457B7B4AF3F37
8 changed files with 45 additions and 2 deletions

View file

@ -42,6 +42,9 @@ class HTMLCategory {
let html = `<div class="panel category">
<a class="category-title" data-toggle="collapse" data-target="#${catName}">
${this.name}
<span class="op-count hidden">
${this.opList.length}
</span>
</a>
<div id="${catName}" class="panel-collapse collapse ${(this.selected ? " show" : "")}" data-parent="#categories">
<ul class="op-list">`;