diff options
author | bob <bcz@cs.brown.edu> | 2019-08-29 14:50:22 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-08-29 14:50:22 -0400 |
commit | f6c15087d30f27c15b3b6304af58c93c65536131 (patch) | |
tree | 9e64469ba1803df24db9f821f33743c1cf9abdad /src/server/authentication/models/current_user_utils.ts | |
parent | e2317289507fd6d20096dc1d2abd5ab1d815e895 (diff) |
changed linkFollowBox creation approach. fixed target contexts to add link default.
Diffstat (limited to 'src/server/authentication/models/current_user_utils.ts')
-rw-r--r-- | src/server/authentication/models/current_user_utils.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts index 83e45d3ce..9866e22eb 100644 --- a/src/server/authentication/models/current_user_utils.ts +++ b/src/server/authentication/models/current_user_utils.ts @@ -79,6 +79,9 @@ export class CurrentUserUtils { Doc.GetProto(overlays).backgroundColor = "#aca3a6"; doc.overlays = overlays; } + if (doc.linkFollowBox === undefined) { + PromiseValue(Cast(doc.overlays, Doc)).then(overlays => overlays && Doc.AddDocToList(overlays, "data", doc.linkFollowBox = Docs.Create.LinkFollowBoxDocument({ x: 250, y: 20, width: 500, height: 370, title: "Link Follower" }))); + } StrCast(doc.title).indexOf("@") !== -1 && (doc.title = StrCast(doc.title).split("@")[0] + "'s Library"); doc.width = 100; doc.preventTreeViewOpen = true; |