aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralinayejin <alina_kim@brown.edu>2023-12-17 23:54:09 -0500
committeralinayejin <alina_kim@brown.edu>2023-12-17 23:54:09 -0500
commit1639ebf0e7cb11108f36e2cef17da1164f03cc18 (patch)
tree819cb1e557c35dad080095b80d35786de8551464
parent4e273e0618ff130ad04cbc9a1d23dea10e9e73b8 (diff)
no fix for pin state entry
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx8
1 files changed, 4 insertions, 4 deletions
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<Collectio
let pinned : FieldResult<Field>;
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<Collectio
const demos = InfoState('Wanna explore more?', {
// activePen: [() => 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<Collectio
const pinnedDoc = InfoState('You just pinned your doc.', {
editPresentation: [() => presentationMode() === 'edit', () => editPresentationMode],
- // manualPresentation: [() => presentationMode() === 'manual', () => manualPresentationMode],
- // autoPresentation: [() => presentationMode() === 'auto', () => autoPresentationMode],
+ manualPresentation: [() => presentationMode() === 'manual', () => manualPresentationMode],
+ autoPresentation: [() => presentationMode() === 'auto', () => autoPresentationMode],
docRemoved: [() => numDocs() < 3, () => demos],
});