From 1639ebf0e7cb11108f36e2cef17da1164f03cc18 Mon Sep 17 00:00:00 2001 From: alinayejin Date: Sun, 17 Dec 2023 23:54:09 -0500 Subject: no fix for pin state entry --- .../collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx index d653a2ef3..947167628 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx @@ -59,7 +59,7 @@ export class CollectionFreeFormInfoUI extends ObservableReactComponent; const pin = () => Doc.ActivePresentation?.data; - const trail = () => DocumentManager.Instance.DocumentViews.find(view => view.Document === Doc.MyTrails); + const trailView = () => DocumentManager.Instance.DocumentViews.find(view => view.Document === Doc.MyTrails); const presentationMode = () => Doc.ActivePresentation?.presentation_status; // set of states @@ -141,7 +141,7 @@ export class CollectionFreeFormInfoUI extends ObservableReactComponent activeTool() === InkTool.Pen, () => penMode], - docPinned: [() => pinned && pinned != pin(), () => pinnedDoc], + docPinned: [() => pin(), () => pinnedDoc], }); // const penMode = InfoState('You\'re in pen mode. Click and drag to draw your first masterpiece.', { @@ -155,8 +155,8 @@ export class CollectionFreeFormInfoUI extends ObservableReactComponent presentationMode() === 'edit', () => editPresentationMode], - // manualPresentation: [() => presentationMode() === 'manual', () => manualPresentationMode], - // autoPresentation: [() => presentationMode() === 'auto', () => autoPresentationMode], + manualPresentation: [() => presentationMode() === 'manual', () => manualPresentationMode], + autoPresentation: [() => presentationMode() === 'auto', () => autoPresentationMode], docRemoved: [() => numDocs() < 3, () => demos], }); -- cgit v1.2.3-70-g09d2