Skip to content

Commit

Permalink
Cog right-click for options (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGeek committed Jan 24, 2022
1 parent 9c49460 commit bec7b4f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ const ExplorerOptionsComponent = (props: ConnectedProps<typeof explorerOptionsCo
id={modalId}
key={modalId}
header={`Options for ${props.objToEdit.title}`}
trigger={<a href="#!" className="exp-options-trigger" style={{ color: props.colour }}><Icon tiny={true} className="exp-options-trigger">settings</Icon></a>}
trigger={<a href="#!" className="exp-options-trigger" style={{ color: props.colour }} onContextMenu={e => {
e.preventDefault();
(e.target as Node).parentElement?.querySelector<HTMLAnchorElement>('.exp-options-trigger')?.click();
return false;
}}><Icon tiny={true} className="exp-options-trigger">settings</Icon></a>}
options={DEFAULT_MODAL_OPTIONS}>
<div className="explorer-options-modal">
<Row>
Expand Down

0 comments on commit bec7b4f

Please sign in to comment.