aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-24 11:48:00 -0400
committerbobzel <zzzman@gmail.com>2020-08-24 11:48:00 -0400
commita6728f81c8192c910ed1f2b70091c39634aca05c (patch)
tree0d2951df140115047aec79ec90285117b3a29ef0 /src/client/views/collections/collectionFreeForm
parent505ad0d2e2a37795f1877b2319a8ba3a1ce65d28 (diff)
fixed presentation trails being added to myPresentations. fixed properties pane to set title "in place".
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx3
-rw-r--r--src/client/views/collections/collectionFreeForm/PropertiesView.tsx2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index d161f49f7..b8019e37b 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -400,9 +400,6 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque
if (!DocumentManager.Instance.getDocumentView(curPres)) {
CollectionDockingView.AddRightSplit(curPres);
}
- const myPresentations = Doc.UserDoc().myPresentations as Doc;
- const presData = DocListCast(myPresentations.data);
- if (!presData.includes(curPres)) Doc.AddDocToList(myPresentations, "data", curPres);
if (e instanceof KeyboardEvent ? e.key === "c" : true) {
const x = this.Bounds.left + this.Bounds.width / 2;
const y = this.Bounds.top + this.Bounds.height / 2;
diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx
index 1bfc6bdce..c4f8f4d44 100644
--- a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx
+++ b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx
@@ -436,7 +436,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
@action
setTitle = (value: string) => {
if (this.dataDoc) {
- this.selectedDoc && (this.selectedDoc.title = value);
+ this.selectedDoc && Doc.SetInPlace(this.selectedDoc, "title", value, true);
KeyValueBox.SetField(this.dataDoc, "title", value, true);
return true;
}