MCPcopy
hub / github.com/Eugeny/tabby / remapMenuItem

Method remapMenuItem

tabby-web/src/platform.ts:80–91  ·  view source on GitHub ↗
(item: MenuItemOptions)

Source from the content-addressed store, hash-verified

78 }
79
80 private remapMenuItem (item: MenuItemOptions): ContextMenuItem {
81 const cmi = {
82 text: item.label,
83 disabled: !(item.enabled ?? true),
84 checked: item.checked,
85 children: item.submenu?.map(i => this.remapMenuItem(i)),
86 }
87 if (item.click) {
88 this.contextMenuHandlers.set(cmi, item.click)
89 }
90 return cmi
91 }
92
93 async showMessageBox (options: MessageBoxOptions): Promise<MessageBoxResult> {
94 const modal = this.ngbModal.open(MessageBoxModalComponent, {

Callers 1

popupContextMenuMethod · 0.95

Calls 1

setMethod · 0.80

Tested by

no test coverage detected