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

Commit 76bb32c

Browse files
authored
Merge pull request #296 from unisonweb/dont-render-catalog
Temporarily hide the _catalog doc
2 parents b3950d4 + 3423d1e commit 76bb32c

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)