Add button to show service statistics

This commit is contained in:
Sebastian Seedorf
2022-09-09 21:30:34 +02:00
parent d964748a66
commit 2eaf8f719b
17 changed files with 1496 additions and 19 deletions

View File

@@ -94,6 +94,11 @@ export async function renameGroup(
return false
}
export async function getGroup(uuid: string, name: string) {
const data = await getData(uuid)
return data?.groups?.[name] ?? undefined
}
export async function addGroup(uuid: string, name: string): Promise<boolean> {
name = name.replace(/[.$]/g, '')
const data = await getData(uuid)