diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-03-27 19:33:56 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-03-27 19:33:56 -0400 |
commit | 4704f088af92a8c04a148861c547afa54a276761 (patch) | |
tree | 2d3e8a06ea67626daf124408926e4585923ae836 /src/fields/Document.ts | |
parent | fde267b5f11e7218216bc5a9de41208a0a74fad5 (diff) |
fixed linking to work with delegates. fixed full screen option and tab dragging bugs.
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r-- | src/fields/Document.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts index cd393d676..e9192f267 100644 --- a/src/fields/Document.ts +++ b/src/fields/Document.ts @@ -35,8 +35,18 @@ export class Document extends Field { public Scale = () => { return this.GetNumber(KeyStore.Scale, 1) } @computed - public get Title() { - return this.GetText(KeyStore.Title, "-untitled-"); + public get Title(): string { + let title = this.Get(KeyStore.Title, true); + if (title) + if (title != FieldWaiting && title instanceof TextField) + return title.Data; + else return "<waiting>"; + let parTitle = this.GetT(KeyStore.Title, TextField); + if (parTitle) + if (parTitle != FieldWaiting) + return parTitle.Data + ".alias"; + else return "<waiting>.alias"; + return "-untitled-"; } @computed |