added "Edit Goalie" to main menu

This commit is contained in:
Jonathan Lamothe 2019-11-12 23:44:39 -05:00
parent 758dc868ec
commit d1773324d5
2 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,7 @@ module Mtlstats.Actions
, createPlayer
, createGoalie
, editPlayer
, editGoalie
, addPlayer
, addGoalie
, resetCreatePlayerState
@ -93,6 +94,10 @@ createGoalie = let
editPlayer :: ProgState -> ProgState
editPlayer = progMode .~ EditPlayer newEditPlayerState
-- | Starts the 'Goalie' editing process
editGoalie :: ProgState -> ProgState
editGoalie = undefined
-- | Adds the entered player to the roster
addPlayer :: ProgState -> ProgState
addPlayer s = fromMaybe s $ do

View File

@ -104,7 +104,9 @@ mainMenu = Menu "*** MAIN MENU ***" True
modify createGoalie >> return True
, MenuItem '5' "Edit Player" $
modify editPlayer >> return True
, MenuItem '6' "Exit" $ do
, MenuItem '6' "Edit Goalie" $
modify editGoalie >> return True
, MenuItem 'X' "Exit" $ do
db <- gets $ view database
liftIO $ do
dir <- getAppUserDataDirectory appName