mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Support per-service stats control
This commit is contained in:
parent
1a374dec3c
commit
7e012993d8
2 changed files with 7 additions and 5 deletions
|
@ -236,6 +236,7 @@ export function cleanServiceGroups(groups) {
|
|||
name: serviceGroup.name,
|
||||
services: serviceGroup.services.map((service) => {
|
||||
const cleanedService = { ...service };
|
||||
if (cleanedService.showStats !== undefined) cleanedService.showStats = JSON.parse(cleanedService.showStats);
|
||||
if (typeof service.weight === 'string') {
|
||||
const weight = parseInt(service.weight, 10);
|
||||
if (Number.isNaN(weight)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue