Skip to content

Commit

Permalink
No arguments required
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyobvious committed Mar 21, 2024
1 parent 6f199fd commit 8c05db2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ruby_event_store-browser/elm/src/Layout.elm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Msg
| SearchedStreamsFetched (Result Http.Error (List SearchStream))
| OnSelect Search.Stream
| OnQueryChanged Search.Stream
| RequestSearch String
| RequestSearch
| ToggleBookmark String


Expand All @@ -49,15 +49,15 @@ type alias Bookmark =
port toggleDialog : String -> Cmd msg


port requestSearch : (String -> msg) -> Sub msg
port requestSearch : (() -> msg) -> Sub msg


port toggleBookmark : String -> Cmd msg


subscriptions : Sub Msg
subscriptions =
requestSearch RequestSearch
requestSearch (always RequestSearch)


buildModel : Model
Expand Down Expand Up @@ -137,7 +137,7 @@ update msg model =
Nothing ->
( model, Cmd.none )

RequestSearch _ ->
RequestSearch ->
( model, toggleDialog searchModalId )

ToggleBookmarksMenu ->
Expand Down
2 changes: 1 addition & 1 deletion ruby_event_store-browser/public/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ app.ports.toggleDialog.subscribe(function (id) {

window.addEventListener("keydown", (event) => {
if (event.key === "k" && (event.ctrlKey || event.metaKey)) {
app.ports.requestSearch.send("");
app.ports.requestSearch.send(null);
event.preventDefault();
}
});
Expand Down

0 comments on commit 8c05db2

Please sign in to comment.