Website

Check-in [4003931997]
Login
Overview
Comment:Clear result when switching lessons.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4003931997703871a00c339b48f293f7c5f3460fb579870c8fde130842fecb5c
User & Date: robin.hansen on 2020-11-05 23:10:59
Other Links: manifest | tags
Context
2020-11-06
00:24
Improve UI of playground. check-in: 04f406f1bd user: robin.hansen tags: trunk
2020-11-05
23:10
Clear result when switching lessons. check-in: 4003931997 user: robin.hansen tags: trunk
23:09
Completed remaining examples. check-in: ac29c88b97 user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified playground/src/Playground.elm from [7d554b7c93] to [2868db87f0].

79
80
81
82
83
84
85

86
87
88
89
90
91
92

        SwitchLesson contractKey ->
            case Dict.get contractKey lessons of
                Just contract ->
                    ( { model
                        | activeLesson = contract
                        , source = contract.content

                      }
                    , Cmd.none
                    )

                Nothing ->
                    ( model, Cmd.none )








>







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

        SwitchLesson contractKey ->
            case Dict.get contractKey lessons of
                Just contract ->
                    ( { model
                        | activeLesson = contract
                        , source = contract.content
                        , result = ""
                      }
                    , Cmd.none
                    )

                Nothing ->
                    ( model, Cmd.none )