From e2d6f1d930f0f092d975bd221c45d07a8620efa7 Mon Sep 17 00:00:00 2001
From: bob <bcz@cs.brown.edu>
Date: Mon, 20 Jan 2020 09:20:42 -0500
Subject: nothing changes.

---
 src/client/views/collections/CollectionTreeView.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'src/client/views/collections/CollectionTreeView.tsx')

diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx
index 239e6caa6..abc902491 100644
--- a/src/client/views/collections/CollectionTreeView.tsx
+++ b/src/client/views/collections/CollectionTreeView.tsx
@@ -633,15 +633,16 @@ export class CollectionTreeView extends CollectionSubView(Document) {
         ContextMenu.Instance.addItem({
             description: "Buxton Layout", icon: "eye", event: () => {
                 // const [first, second, third] = new Array(3).map(() => Docs.Create.MulticolumnDocument([], {}));
-                const year = Docs.Create.FreeformDocument([], { title: "year" });
+                const year = Docs.Create.TextDocument({ title: "year" });
                 const wrapper = Docs.Create.FreeformDocument([year], {});
+                wrapper.disableLOD = true;
                 makeTemplate(wrapper);
                 const detailedLayout = Doc.MakeAlias(wrapper);
                 const cardLayout = ImageBox.LayoutString("hero");
                 this.childLayoutPairs.forEach(({ layout }) => {
-                    layout.layout = cardLayout;
-                    layout.detailedDeviceView = detailedLayout;
-                    // Doc.ApplyTemplateTo(wrapper, layout, "detailedDeviceView");
+                    Doc.GetProto(layout).layout = cardLayout;
+                    Doc.GetProto(layout).layout_detailed = detailedLayout;
+                    // Doc.ApplyTemplateTo(wrapper, layout, "layout_detailed");
                 });
             }
         });
-- 
cgit v1.2.3-70-g09d2

