aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/current_user_utils.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-26 22:05:27 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-26 22:05:27 -0400
commit6a6e56cecbff393a013bd293f1feb5c5f04cb7cc (patch)
tree68dc863c5b8a9176e52ba6355de2ae7a2d2b42ac /src/server/authentication/models/current_user_utils.ts
parent11bb2c9b37f5c08639fcbb1ed451137188765189 (diff)
from last
Diffstat (limited to 'src/server/authentication/models/current_user_utils.ts')
-rw-r--r--src/server/authentication/models/current_user_utils.ts19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 76aa51f63..6b6a974b7 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -84,21 +84,22 @@ export class CurrentUserUtils {
if (doc["template-button-detail"] === undefined) {
const { TextDocument, ImageDocument, CarouselDocument, TreeDocument } = Docs.Create;
- const fallbackImg = "http://www.cs.brown.edu/~bcz/face.gif";
const detailedTemplate = `{ "doc": { "type": "doc", "content": [ { "type": "paragraph", "content": [ { "type": "dashField", "attrs": { "fieldKey": "year" } } ] }, { "type": "paragraph", "content": [ { "type": "dashField", "attrs": { "fieldKey": "company" } } ] } ] }, "selection":{"type":"text","anchor":1,"head":1},"storedMarks":[] }`;
- const textDoc = TextDocument("", { title: "details", _autoHeight: true });
- const detailView = Docs.Create.MultirowDocument([
+ const textDoc1 = TextDocument("", { title: "shortDescription", treeViewOpen: true, treeViewExpandedView: "layout", _height: 50 });
+ const textDoc2 = TextDocument("", { title: "longDescription", treeViewOpen: false, treeViewExpandedView: "layout", _height: 350 });
+ const detailView = Docs.Create.StackingDocument([
CarouselDocument([], { title: "data", _height: 350, _itemIndex: 0, backgroundColor: "#9b9b9b3F" }),
TreeDocument([
- // textDoc,
- TextDocument("", { title: "short description", _autoHeight: true }),
+ textDoc1,
+ textDoc2,
// TreeDocument([], { title: "narratives", _height: 75, treeViewHideTitle: true }),
- TextDocument("", { title: "long description", _height: 350 })
- ], { title: "stuff", _height: 100 })
- ], { _chromeStatus: "disabled", _width: 300, _height: 300, _autoHeight: true, title: "detailView" });
- textDoc.data = new RichTextField(detailedTemplate, "year company");
+ ], { title: "stuff", _height: 300, treeViewHideTitle: true })
+ ], { _chromeStatus: "disabled", _width: 300, _height: 600, title: "detailView" });
+ //textDoc.data = new RichTextField(detailedTemplate, "year company");
detailView.isTemplateDoc = makeTemplate(detailView);
+ textDoc1.title = "Short Description";
+ textDoc2.title = "Long Description";
doc["template-button-detail"] = CurrentUserUtils.ficon({
onDragStart: ScriptField.MakeFunction('getCopy(this.dragFactory, true)'),