aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-01-03 23:46:19 -0500
committerbobzel <zzzman@gmail.com>2024-01-03 23:46:19 -0500
commit1b3b03b304b52662dc78fe50c37b821945454ebf (patch)
treef4f14b0102c89d45a6c6f5d5079512a398c44087
parent2ea594a4c1ff221200e0795fb07d30b603177a67 (diff)
made turning off infoUI persistent.
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 0128647a4..a3cedb9a0 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -1435,9 +1435,8 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
return anchor;
};
- @observable _hideInfo = false;
- @action closeInfo = () => (this._hideInfo = true);
- infoUI = () => (this._hideInfo || this.Document.annotationOn || this._props.renderDepth ? null : <CollectionFreeFormInfoUI Document={this.Document} Freeform={this} close={this.closeInfo} />);
+ @action closeInfo = () => (this.Document._hideInfo = true);
+ infoUI = () => (this.Document._hideInfo || this.Document.annotationOn || this._props.renderDepth ? null : <CollectionFreeFormInfoUI Document={this.Document} Freeform={this} close={this.closeInfo} />);
componentDidMount() {
this._props.setContentView?.(this);