mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #34195 from overleaf/mj-command-palette-menu-labels
[web] Add menu labels to commands, and add more commands to command palette GitOrigin-RevId: 21e17142bb3112b5fdcda85a472122b011979f49
This commit is contained in:
committed by
Copybot
parent
cabe0046c5
commit
b7735d402d
@@ -13,6 +13,8 @@ type CommandInvocationContext = {
|
||||
|
||||
export type Command = {
|
||||
label: string
|
||||
// Optional label for the command when it appears in a menu. If not provided, `label` will be used.
|
||||
menuLabel?: string
|
||||
id: string
|
||||
handler?: (context: CommandInvocationContext) => void
|
||||
href?: string
|
||||
|
||||
Reference in New Issue
Block a user