diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-11 15:43:39 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-11 15:43:39 -0400 |
| commit | 1b203afbd297f8ae9400a47c9379df912f9ef3b5 (patch) | |
| tree | 2e5048b21a3360faeaf74b6609b58083f496cd88 /src/client/views/collections/CollectionView.tsx | |
| parent | 6060e67bcf08089b826685c512e3aa181c714446 (diff) | |
tweaks to annotationOverlay.
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index e69696390..56750668d 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -43,7 +43,7 @@ export class CollectionView extends React.Component<FieldViewProps> { return (null); } - get isAnnotationOverlay() { return this.props.fieldKey === "annotations" || this.props.fieldExt === "annotations"; } + get isAnnotationOverlay() { return this.props.fieldExt ? true : false; } onContextMenu = (e: React.MouseEvent): void => { if (!this.isAnnotationOverlay && !e.isPropagationStopped() && this.props.Document[Id] !== CurrentUserUtils.MainDocId) { // need to test this because GoldenLayout causes a parallel hierarchy in the React DOM for its children and the main document view7 |
