From e4a081e7c17b880c5376d0090c13f0d9153b5dca Mon Sep 17 00:00:00 2001 From: bob Date: Mon, 29 Apr 2019 11:42:17 -0400 Subject: from last. --- src/client/views/DocumentDecorations.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 7d55a2308..18449ed32 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -65,7 +65,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> if (text[0] === '#') { let command = text.slice(1, text.length); this._fieldKey = new Key(command); - this._title = this.getTitle; + this._title = this.selectionTitle; } else { if (SelectionManager.SelectedDocuments().length > 0) { @@ -101,7 +101,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> } @action onTitleUp = (e: PointerEvent): void => { if (Math.abs(e.clientX - this._downX) < 4 || Math.abs(e.clientY - this._downY) < 4) { - this._title = this.getTitle; + this._title = this.selectionTitle; this._edtingTitle = true; } document.removeEventListener("pointermove", this.onTitleMove); @@ -453,7 +453,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> } @computed - get getTitle(): string { + get selectionTitle(): string { if (SelectionManager.SelectedDocuments().length === 1) { let field = SelectionManager.SelectedDocuments()[0].props.Document.Get(this._fieldKey); if (field instanceof TextField) { @@ -534,7 +534,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> {this._edtingTitle ? : -
{`${this.getTitle}`}
} +
{`${this.selectionTitle}`}
}
X
e.preventDefault()}>
e.preventDefault()}>
-- cgit v1.2.3-70-g09d2