diff options
author | bobzel <zzzman@gmail.com> | 2021-01-19 15:02:03 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-01-19 15:02:03 -0500 |
commit | 8538a83baf57d7015b62b4ebc22d2bd7318f9d16 (patch) | |
tree | 7791f2514df785a3a14cf866e7ba47305be88526 /src/client/views/animationtimeline/Timeline.tsx | |
parent | 28bed25b20f2882cb40e616e2ecdd7cf0793e105 (diff) |
fixed isPushpin annotation behavior outside of PDFs. fixed link follow highlighting to go away when target is hidden.
Diffstat (limited to 'src/client/views/animationtimeline/Timeline.tsx')
-rw-r--r-- | src/client/views/animationtimeline/Timeline.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx index 093310755..66afad0ac 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -12,6 +12,7 @@ import "./Timeline.scss"; import { TimelineOverview } from "./TimelineOverview"; import { Track } from "./Track"; import clamp from "../../util/clamp"; +import { DocumentType } from "../../documents/DocumentTypes"; /** * Timeline class controls most of timeline functions besides individual keyframe and track mechanism. Main functions are @@ -75,7 +76,7 @@ export class Timeline extends React.Component<FieldViewProps> { */ @computed private get children(): Doc[] { - const annotatedDoc = ["image", "video", "pdf"].includes(StrCast(this.props.Document.type)); + const annotatedDoc = [DocumentType.IMG, DocumentType.VID, DocumentType.PDF].includes(StrCast(this.props.Document.type) as any); if (annotatedDoc) { return DocListCast(this.props.Document[Doc.LayoutFieldKey(this.props.Document) + "-annotations"]); } |