Skip to content

Commit

Permalink
#3276 - Remove 'Edit attachment point...' from right-click context me…
Browse files Browse the repository at this point in the history
…nu (#3301)

* #3276 Remove 'Edit attachment point...' from right-click context menu

* #3276 update autotests snapshots

* #3276 update snapshots
  • Loading branch information
StarlaStarla authored Sep 15, 2023
1 parent f2ba2a1 commit 1c28934
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import useAtomEdit from '../hooks/useAtomEdit';
import useAtomStereo from '../hooks/useAtomStereo';
import useDelete from '../hooks/useDelete';
import { MenuItemsProps } from '../contextMenu.types';
import useRGroupAttachmentPointEdit from '../hooks/useRGroupAttachmentPointEdit';
import { updateSelectedAtoms } from 'src/script/ui/state/modal/atoms';
import { useAppContext } from 'src/hooks';
import Editor from 'src/script/editor';
Expand Down Expand Up @@ -56,11 +55,6 @@ const atomPropertiesForSubMenu: {
const AtomMenuItems: FC<MenuItemsProps> = (props) => {
const [handleEdit] = useAtomEdit();
const [handleStereo, stereoDisabled] = useAtomStereo();
const [
handleEditRGroupAttachmentPoint,
rgroupAttachmentPointDisabled,
rgroupAttachmentPointHidden,
] = useRGroupAttachmentPointEdit();
const handleDelete = useDelete();
const { getKetcherInstance } = useAppContext();
const editor = getKetcherInstance().editor as Editor;
Expand Down Expand Up @@ -92,14 +86,6 @@ const AtomMenuItems: FC<MenuItemsProps> = (props) => {
Enhanced stereochemistry...
</Item>

<Item
{...props}
disabled={rgroupAttachmentPointDisabled}
hidden={rgroupAttachmentPointHidden}
onClick={handleEditRGroupAttachmentPoint}
>
Edit attachment point...
</Item>
<Submenu
{...props}
label="Query properties"
Expand Down

0 comments on commit 1c28934

Please sign in to comment.