MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / sendMenuAction

Function sendMenuAction

src/pages/components/ScriptMenuList/index.tsx:44–53  ·  view source on GitHub ↗
(
  uuid: string,
  options: ScriptMenuItemOption | undefined,
  menus: ScriptMenuItem[],
  inputValue?: any
)

Source from the content-addressed store, hash-verified

42const CollapseItem = Collapse.Item;
43
44const sendMenuAction = (
45 uuid: string,
46 options: ScriptMenuItemOption | undefined,
47 menus: ScriptMenuItem[],
48 inputValue?: any
49) => {
50 popupClient.menuClick(uuid, menus, inputValue).then(() => {
51 options?.autoClose !== false && window.close();
52 });
53};
54
55const FormItem = Form.Item;
56

Callers 2

index.tsxFile · 0.85
sharedKeyPressListnerFunction · 0.85

Calls 2

closeMethod · 0.65
menuClickMethod · 0.45

Tested by

no test coverage detected