Skip to content

Commit

Permalink
allow accessing menu when selecting program
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiaggio committed Dec 22, 2024
1 parent b897b85 commit 77a98d3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions explore/src/main/scala/explore/TopBar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,21 @@ object TopBar:
props.preferences.copy(level = l)
) *> IO(window.location.reload())).runAsync

val firstItems = List(
val firstItems =
MenuItem.Item(
label = "About Explore",
icon = Icons.Info,
command = isAboutOpen.set(IsAboutOpen(true))
),
MenuItem.Item(
label = "Manage Programs",
icon = Icons.ListCheck,
command = isProgramsOpen.setState(IsProgramOpen(true))
)
)
) +:
(if (props.programId.isDefined)
List(
MenuItem.Item(
label = "Manage Programs",
icon = Icons.ListCheck,
command = isProgramsOpen.setState(IsProgramOpen(true))
)
)
else List.empty)

val lastItems = List(
MenuItem.Separator.some,
Expand Down

0 comments on commit 77a98d3

Please sign in to comment.