remove unused parameter from get-note-versions-menu.ts

This commit is contained in:
Hazelnoot 2025-04-02 21:03:41 -04:00
parent 7f577bd0a9
commit 297666ac82
7 changed files with 7 additions and 11 deletions

View file

@ -820,7 +820,7 @@ function showMenu(): void {
}
async function menuVersions(): Promise<void> {
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value, menuButton: menuVersionsButton });
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value });
os.popupMenu(menu, menuVersionsButton.value).then(focus).finally(cleanup);
}

View file

@ -760,7 +760,7 @@ function showMenu(): void {
}
async function menuVersions(): Promise<void> {
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value, menuButton: menuVersionsButton });
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value });
os.popupMenu(menu, menuVersionsButton.value).then(focus).finally(cleanup);
}

View file

@ -55,7 +55,7 @@ const props = defineProps<{
const menuVersionsButton = shallowRef<HTMLElement>();
async function menuVersions(): Promise<void> {
const { menu, cleanup } = await getNoteVersionsMenu({ note: props.note, menuButton: menuVersionsButton });
const { menu, cleanup } = await getNoteVersionsMenu({ note: props.note });
popupMenu(menu, menuVersionsButton.value).then(focus).finally(cleanup);
}

View file

@ -820,7 +820,7 @@ function showMenu(): void {
}
async function menuVersions(): Promise<void> {
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value, menuButton: menuVersionsButton });
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value });
os.popupMenu(menu, menuVersionsButton.value).then(focus).finally(cleanup);
}

View file

@ -766,7 +766,7 @@ function showMenu(): void {
}
async function menuVersions(): Promise<void> {
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value, menuVersionsButton });
const { menu, cleanup } = await getNoteVersionsMenu({ note: note.value });
os.popupMenu(menu, menuVersionsButton.value).then(focus).finally(cleanup);
}

View file

@ -101,7 +101,7 @@ const MOBILE_THRESHOLD = 500;
const isMobile = ref(deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD);
async function menuVersions(): Promise<void> {
const { menu, cleanup } = await getNoteVersionsMenu({ note: props.note, menuButton: menuVersionsButton });
const { menu, cleanup } = await getNoteVersionsMenu({ note: props.note });
popupMenu(menu, menuVersionsButton.value).then(focus).finally(cleanup);
}