MCPcopy Create free account
hub / github.com/gotify/server / enabledState

Function enabledState

ui/src/tests/plugin.test.ts:39–40  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

37const switchSelctor = (id: number) => $table.cell(id, Col.SetEnabled, '[data-enabled]');
38
39const enabledState = async (id: number) =>
40 (await page.$eval(switchSelctor(id), (el) => el.getAttribute('data-enabled'))) === 'true';
41
42const toggleEnabled = async (id: number) => {
43 const origEnabled = (await enabledState(id)).toString();

Callers 2

toggleEnabledFunction · 0.85
plugin.test.tsFile · 0.85

Calls 1

switchSelctorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…