diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:17 -0400 |
| commit | 669d20040a727cf0599126eccffb175643d4fa09 (patch) | |
| tree | f14822bbda878b48301d8c7f4de89473bcfd6dc7 /src/client/views/PropertiesButtons.tsx | |
| parent | e691d8e72ba632f0ef2d4122fe7233f9a48d4439 (diff) | |
| parent | b99e32960ff624237ca99c8d6ee756026a79003a (diff) | |
Merge branch 'master' into data-visualization-view-naafi
Diffstat (limited to 'src/client/views/PropertiesButtons.tsx')
| -rw-r--r-- | src/client/views/PropertiesButtons.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx index 74055f057..9c6d9a108 100644 --- a/src/client/views/PropertiesButtons.tsx +++ b/src/client/views/PropertiesButtons.tsx @@ -200,7 +200,7 @@ export class PropertiesButtons extends React.Component<{}, {}> { {list} </div> </div> - {Doc.UserDoc().noviceMode ? (null) : <div onPointerDown={this.editOnClickScript} className="onClickFlyout-editScript"> Edit onClick Script</div>} + {Doc.noviceMode ? (null) : <div onPointerDown={this.editOnClickScript} className="onClickFlyout-editScript"> Edit onClick Script</div>} </div>; } @computed @@ -229,7 +229,7 @@ export class PropertiesButtons extends React.Component<{}, {}> { const isTree = this.selectedDoc?._viewType === CollectionViewType.Tree; const isTabView = this.selectedTabView; const toggle = (ele: JSX.Element | null, style?: React.CSSProperties) => <div className="propertiesButtons-button" style={style}> {ele} </div>; - const isNovice = Doc.UserDoc().noviceMode; + const isNovice = Doc.noviceMode; return !this.selectedDoc ? (null) : <div className="propertiesButtons"> {toggle(this.titleButton)} |
