From 31928ac5a1258ede3d0f03c87e3e78dd9a1911f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Reszke?= Date: Wed, 24 Jul 2024 16:32:27 +0200 Subject: [PATCH] Revert "Introduce Search module" This reverts commit 198bfc4f26240f512875a4507b3ac6ef3db94b96. --- ruby_event_store-browser/elm/src/Layout.elm | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ruby_event_store-browser/elm/src/Layout.elm b/ruby_event_store-browser/elm/src/Layout.elm index 4ebb82727a..7b63b9b0c1 100644 --- a/ruby_event_store-browser/elm/src/Layout.elm +++ b/ruby_event_store-browser/elm/src/Layout.elm @@ -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 = @@ -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 =