Skip to content

Commit

Permalink
save button working except for initial state check
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker committed Jul 22, 2019
1 parent da64e78 commit 3754e74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/Metajelo/FormUtil.purs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ instance isOptionMaybeInstitutionContactType
fromOptionValue = join <<< hush <<< MR.readInstitutionContactType

formSaveButton :: forall form. MKFState form -> Widget HTML SyntheticMouseEvent
formSaveButton fstate = D.button [P.onClick] [ D.text
if fstate.dirty then "Save"
else "Already Saved"
]
formSaveButton fstate =
if fstate.dirty then D.button [P.onClick] [D.text "Save"]
else D.button [P.disabled true] [D.text "Saved"]

0 comments on commit 3754e74

Please sign in to comment.