Skip to content

Commit

Permalink
Add ZoteroPane and goUpdateGlobalEditMenuItems to citation editor…
Browse files Browse the repository at this point in the history
… window to fix author context menus
  • Loading branch information
Dominic-DallOsto committed Aug 27, 2024
1 parent bc1fb60 commit 17ee82c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/itemPane/citationsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ function CitationsBox(props: {
const args = {
citation: citation,
addon: addon,
ZoteroPane: ZoteroPane,
goUpdateGlobalEditMenuItems:
window.document.defaultView!.goUpdateGlobalEditMenuItems,
};
const retVals: { [key: string]: any } = {};
window.openDialog(
Expand Down
8 changes: 7 additions & 1 deletion src/dialogs/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import Citation from "../../cita/citation";
import Wikicite from "../../cita/wikicite";

let citation: Citation;
({ citation, addon: window.addon } = (window as any).arguments[0]);
({
citation,
addon: window.addon,
ZoteroPane: window.ZoteroPane,
goUpdateGlobalEditMenuItems:
window.document.defaultView!.goUpdateGlobalEditMenuItems,
} = (window as any).arguments[0]);
const retVals: { item?: Zotero.Item } = (window as any).arguments[1];
let newItem: ItemWrapper;

Expand Down

0 comments on commit 17ee82c

Please sign in to comment.