mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 15:17:02 +02:00
feat: show # of widgets on templates
ability to hide drafts
This commit is contained in:
@@ -61,6 +61,7 @@ function buildTemplatesFromAreas(areas) {
|
||||
templates.push({
|
||||
template: area.template,
|
||||
areas: [],
|
||||
widgetCount: area.data.length,
|
||||
});
|
||||
|
||||
index += 1;
|
||||
@@ -70,6 +71,7 @@ function buildTemplatesFromAreas(areas) {
|
||||
name: area.name,
|
||||
location: area.location,
|
||||
});
|
||||
templates[list[area.template]].widgetCount += area.data.length;
|
||||
});
|
||||
return templates;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user