chore(client/ts): port menus/link_context_menu

This commit is contained in:
Elian Doran
2024-12-22 18:03:03 +02:00
parent 6140bb5d99
commit dd4885e15c
4 changed files with 17 additions and 12 deletions

View File

@@ -7,11 +7,6 @@ import { t } from '../services/i18n.js';
import type { SelectMenuItemEventListener } from '../components/events.js';
import NoteTreeWidget from '../widgets/note_tree.js';
interface ShowContext {
pageX: number;
pageY: number;
}
export default class LauncherContextMenu implements SelectMenuItemEventListener {
private treeWidget: NoteTreeWidget;
@@ -22,7 +17,7 @@ export default class LauncherContextMenu implements SelectMenuItemEventListener
this.node = node;
}
async show(e: ShowContext) {
async show(e: PointerEvent) {
contextMenu.show({
x: e.pageX,
y: e.pageY,