Add button to show service statistics
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user