aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesButtons.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-27 13:37:01 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-27 13:37:01 -0500
commitf58fb7428f6eeca6b41beb59df244c7c50c876fa (patch)
treec83ba1b91a6a621f11c1d0465ec444ca65034119 /src/client/views/PropertiesButtons.tsx
parent95c175bcd625d6e62563d4ae1194ecd40804fe0b (diff)
bug fixes and adding to menu UI
Diffstat (limited to 'src/client/views/PropertiesButtons.tsx')
-rw-r--r--src/client/views/PropertiesButtons.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx
index f1cb24425..1f13d0b07 100644
--- a/src/client/views/PropertiesButtons.tsx
+++ b/src/client/views/PropertiesButtons.tsx
@@ -81,7 +81,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
@computed get selectedDoc() { return this.selectedDocumentView?.rootDoc; }
@computed get dataDoc() { return this.selectedDocumentView?.dataDoc; }
- @observable public onClick = this.selectedDoc?.onClickBehavior ? this.selectedDoc?.onClickBehavior : "nothing";
+ @computed get onClick() { return this.selectedDoc?.onClickBehavior ? this.selectedDoc?.onClickBehavior : "nothing"; }
public startPullOutcome = action((success: boolean) => {
if (!this._pullAnimating) {
@@ -379,7 +379,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
@action
handleOptionChange = (e: any) => {
const value = e.target.value;
- this.onClick = e.target.value;
+ this.selectedDoc?.onClickBehavior = e.target.value;
if (value === "nothing") {
this.selectedDocumentView?.noOnClick;
} else if (value === "enterPortal") {