MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / enableAction

Function enableAction

src/pages/options/routes/ScriptList/ScriptTable.tsx:860–864  ·  view source on GitHub ↗
(enable: boolean)

Source from the content-addressed store, hash-verified

858 size="mini"
859 onClick={() => {
860 const enableAction = (enable: boolean) => {
861 const uuids = select.map((item) => item.uuid);
862 updateScripts(uuids, { enableLoading: true });
863 scriptClient.enables(uuids, enable);
864 };
865 switch (action) {
866 case "enable":
867 enableAction(true);

Callers 1

ScriptTableFunction · 0.85

Calls 1

enablesMethod · 0.80

Tested by

no test coverage detected