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

Temporarily hide the _catalog doc #296

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/CodebaseTree.elm
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,17 @@ viewListingRow clickMsg label_ category icon =
|> Maybe.map (\msg -> a [ containerClass, onClick msg ])
|> Maybe.withDefault (span [ containerClass ])
in
container
[ Icon.view icon
, viewListingLabel label_
, span [ class "definition-category" ] [ text category ]
]
-- TODO: Temporary work around to avoid the hidden catalog definition to
-- show up on Share while the catalog page is being worked on
if label_ == "_catalog" then
UI.nothing

else
container
[ Icon.view icon
, viewListingLabel label_
, span [ class "definition-category" ] [ text category ]
]


viewListingLabel : String -> Html msg
Expand Down