mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
refactor: 💡 remove unused command data (editNoteTitle)
This commit is contained in:
parent
e555a3354f
commit
54a0bdeb14
@ -138,7 +138,6 @@ export type CommandMappings = {
|
||||
insertNoteAfter: ContextMenuCommandData;
|
||||
insertChildNote: ContextMenuCommandData;
|
||||
delete: ContextMenuCommandData;
|
||||
editNoteTitle: ContextMenuCommandData;
|
||||
protectSubtree: ContextMenuCommandData;
|
||||
unprotectSubtree: ContextMenuCommandData;
|
||||
openBulkActionsDialog:
|
||||
|
@ -1687,7 +1687,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
this.triggerCommand("showImportDialog", { noteId: node.data.noteId });
|
||||
}
|
||||
|
||||
editNoteTitleCommand({ node }: CommandListenerData<"editNoteTitle">) {
|
||||
editNoteTitleCommand() {
|
||||
appContext.triggerCommand("focusOnTitle");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user