Skip to content

Commit

Permalink
Revert "Introduce Search module"
Browse files Browse the repository at this point in the history
This reverts commit 198bfc4.
  • Loading branch information
lukaszreszke committed Jul 24, 2024
1 parent 96e34e2 commit 31928ac
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ruby_event_store-browser/elm/src/Layout.elm
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,9 @@ buildModel =
}


goToStream model stream =
Browser.Navigation.pushUrl model.key (Route.streamUrl model.flags.rootUrl stream)


update : Msg -> WrappedModel Model -> ( WrappedModel Model, Cmd Msg )
update msg model =
case msg of
SearchMsg searchMsg ->
let
( newSearch, cmd ) =
Search.update searchMsg model.internal.search (goToStream model)
in
( { model | internal = Model newSearch }, Cmd.map SearchMsg cmd )

TimeZoneSelected zoneName ->
let
defaultTimeZone =
Expand Down Expand Up @@ -131,6 +120,9 @@ update msg model =
ToggleBookmark id ->
( model, toggleBookmark id )

SearchMsg _ ->
( model, Cmd.none )


view : (Msg -> a) -> WrappedModel Model -> Html a -> Html a
view layoutMsgBuilder model pageView =
Expand Down

0 comments on commit 31928ac

Please sign in to comment.