diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-04 19:37:10 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-04 19:37:10 -0400 |
| commit | 318dacd846ab06358e26ca49e711e06434287d16 (patch) | |
| tree | ef8501cac4df4856541c0d643bcebbf87a4074e1 /src/client/views/collections/CollectionView.tsx | |
| parent | 93bed89512baa506c1b5ed2223ffc83fa6b5390e (diff) | |
Most stuff seems to be working
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index d440dcff9..5b4caf58d 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -8,16 +8,21 @@ import { CollectionTreeView } from './CollectionTreeView'; import { ContextMenu } from '../ContextMenu'; import { CurrentUserUtils } from '../../../server/authentication/models/current_user_utils'; import { KeyStore } from '../../../fields/KeyStore'; +import { observer } from 'mobx-react'; + +@observer export class CollectionView extends React.Component<FieldViewProps> { public static LayoutString(fieldStr: string = "DataKey") { return FieldView.LayoutString(CollectionView, fieldStr) } private SubView = (type: CollectionViewType, renderProps: CollectionRenderProps) => { let props = { ...this.props, ...renderProps }; switch (type) { - case CollectionViewType.Freeform: return (<CollectionFreeFormView {...props} />) case CollectionViewType.Schema: return (<CollectionSchemaView {...props} />) case CollectionViewType.Docking: return (<CollectionDockingView {...props} />) case CollectionViewType.Tree: return (<CollectionTreeView {...props} />) + case CollectionViewType.Freeform: + default: + return (<CollectionFreeFormView {...props} />) } return (null); } |
