Skip to content

Commit

Permalink
refactor(builds): get actions menu to display
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMerrick committed Jan 18, 2024
1 parent 7eccbc7 commit 3519f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/elm/Components/Builds.elm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type alias Props msg =
, showActionsMenus : List Int
, maybeEvent : Maybe String
, showFullTimestamps : Bool
, showActionsMenuBool : Bool
}


Expand Down Expand Up @@ -158,7 +159,7 @@ view shared props =
viewPreview : Shared.Model -> Props msg -> Build -> Html msg
viewPreview shared props build =
let
showMenu =
isMenuOpen =
List.member build.id props.showActionsMenus

org =
Expand Down Expand Up @@ -259,7 +260,7 @@ viewPreview shared props build =
text ""

actionsMenu =
if showMenu then
if props.showActionsMenuBool then
details (buildMenuBaseClassList :: buildMenuAttributeList)
[ summary [ class "summary", Util.onClickPreventDefault (props.msgs.showHideActionsMenus (Just build.id) Nothing), Util.testAttribute "build-menu" ]
[ text "Actions"
Expand Down
1 change: 1 addition & 0 deletions src/elm/Pages/Org_/Repo_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ view shared route model =
, showActionsMenus = model.showActionsMenus
, maybeEvent = Dict.get "event" route.query
, showFullTimestamps = model.showFullTimestamps
, showActionsMenuBool = True
}
, Components.Pager.view model.pager Components.Pager.defaultLabels GotoPage
]
Expand Down

0 comments on commit 3519f0a

Please sign in to comment.