diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-22 21:08:56 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-22 21:08:56 -0400 |
| commit | 6048484932b9abe2962712bf2b8af56eeaab1176 (patch) | |
| tree | 12bc446139d3dbc19763f52eebfefef72275855b /src/client/views/DocumentDecorations.tsx | |
| parent | ff5994377a80ec76c0138c5966f43a5bbce6e8b3 (diff) | |
changed customTitle to title-custom
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index c44c2968c..8e44bcf8f 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -117,7 +117,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> this._titleControlString = this._accumulatedTitle; } else if (this._titleControlString.startsWith("#")) { const selectionTitleFieldKey = this._titleControlString.substring(1); - selectionTitleFieldKey === "title" && (SelectionManager.SelectedDocuments()[0].props.Document.customTitle = !this._accumulatedTitle.startsWith("-")); + selectionTitleFieldKey === "title" && (SelectionManager.SelectedDocuments()[0].dataDoc["title-custom"] = !this._accumulatedTitle.startsWith("-")); UndoManager.RunInBatch(() => selectionTitleFieldKey && SelectionManager.SelectedDocuments().forEach(d => { const value = typeof d.props.Document[selectionTitleFieldKey] === "number" ? +this._accumulatedTitle : this._accumulatedTitle; Doc.SetInPlace(d.props.Document, selectionTitleFieldKey, value, true); @@ -624,8 +624,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> onBlur={e => this.titleBlur(true)} onChange={action(e => this._accumulatedTitle = e.target.value)} onKeyPress={this.titleEntered} /> {minimal ? (null) : <div className="publishBox" // title="make document referenceable by its title" // onPointerDown={action(e => { - // if (!seldoc.props.Document.customTitle) { - // seldoc.props.Document.customTitle = true; + // if (!seldoc.props.Document["title-custom"]) { + // seldoc.props.Document["title-custom"] = true; // StrCast(Doc.GetProto(seldoc.props.Document).title).startsWith("-") && (Doc.GetProto(seldoc.props.Document).title = StrCast(seldoc.props.Document.title).substring(1)); // this._accumulatedTitle = StrCast(seldoc.props.Document.title); // } |
