aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authoranika <anika.ahluwalia@gmail.com>2021-01-27 20:35:50 -0500
committeranika <anika.ahluwalia@gmail.com>2021-01-27 20:35:50 -0500
commit8a44fab7131c713937d92c2ac29265d4e2bd54d5 (patch)
tree74e24dddb475feb05a3dc71b1c10a9a56b65c623 /src/client/views/collections/CollectionView.tsx
parent7941773a61573db14cbf425d07ab0ff9b8ce5d33 (diff)
parente3db0536ad0086a328ee353be1c4dfd34ba03e02 (diff)
Merge branch 'filters' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 83c639871..03d8606d7 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -59,7 +59,8 @@ export enum CollectionViewType {
//Staff = "staff",
Map = "map",
Grid = "grid",
- Pile = "pileup"
+ Pile = "pileup",
+ StackedTimeline = "stacked timeline"
}
export interface CollectionViewProps extends FieldViewProps {
isAnnotationOverlay?: boolean; // is the collection an annotation overlay (eg an overlay on an image/video/etc)
@@ -158,14 +159,14 @@ export class CollectionView extends Touchable<CollectionViewProps> {
const pushpin = Docs.Create.FontIconDocument({
title: "pushpin", label: "",
icon: "map-pin", x: Cast(doc.x, "number", null), y: Cast(doc.y, "number", null), _backgroundColor: "#0000003d", color: "#ACCEF7",
- _width: 15, _height: 15, _xPadding: 0, isLinkButton: true, displayTimecode: Cast(doc.displayTimecode, "number", null)
+ _width: 15, _height: 15, _xPadding: 0, isLinkButton: true, _timecodeToShow: Cast(doc._timecodeToShow, "number", null)
});
pushpin.isPushpin = true;
Doc.GetProto(pushpin).annotationOn = doc.annotationOn;
Doc.SetInPlace(doc, "annotationOn", undefined, true);
Doc.AddDocToList(context, Doc.LayoutFieldKey(context) + "-annotations", pushpin);
const pushpinLink = DocUtils.MakeLink({ doc: pushpin }, { doc: doc }, "pushpin", "");
- doc.displayTimecode = undefined;
+ doc._timecodeToShow = undefined;
}
doc._stayInCollection = undefined;
doc.context = this.props.Document;