Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 3423d1e

Browse files
committed
Temporarily hide the _catalog doc
Unison Share will have a new front page that features a catalog which is derived from a Unison Doc. This page will mean that users will never see a tree view of the top of the Unison Share like they do now. While the Catalog page is being worked on, but not switched over to, we want to hide the _catalog doc from the top level codebase tree to avoid any confusion. This should be removed later when the Catalog page is in place.
1 parent 82b8e96 commit 3423d1e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/CodebaseTree.elm

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,17 @@ viewListingRow clickMsg label_ category icon =
194194
|> Maybe.map (\msg -> a [ containerClass, onClick msg ])
195195
|> Maybe.withDefault (span [ containerClass ])
196196
in
197-
container
198-
[ Icon.view icon
199-
, viewListingLabel label_
200-
, span [ class "definition-category" ] [ text category ]
201-
]
197+
-- TODO: Temporary work around to avoid the hidden catalog definition to
198+
-- show up on Share while the catalog page is being worked on
199+
if label_ == "_catalog" then
200+
UI.nothing
201+
202+
else
203+
container
204+
[ Icon.view icon
205+
, viewListingLabel label_
206+
, span [ class "definition-category" ] [ text category ]
207+
]
202208

203209

204210
viewListingLabel : String -> Html msg

0 commit comments

Comments
 (0)