Skip to content

Commit

Permalink
format: add icon & format text
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Nov 29, 2023
1 parent f4df036 commit 77c417e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/radiator_web/controllers/api/outline_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ defmodule RadiatorWeb.Api.OutlineController do
def create(conn, _params) do
conn
|> put_resp_content_type("application/json")
|> send_resp(400, Jason.encode!(%{error: "params"}))
|> send_resp(400, Jason.encode!(%{error: "missing params"}))
end
end
1 change: 1 addition & 0 deletions lib/radiator_web/live/outline_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<h2 class="text-2xl">Bookmarklet</h2>
<p>
Drag & Drop this link in your Browser-Bookmarks:
<.icon name="hero-bookmark" class="w-5 h-5" />
<a href={@bookmarklet} class="underline">Save in Radiator</a>
</p>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule RadiatorWeb.Api.OutlineControllerTest do
test "can't create node when content is missing", %{conn: conn} do
conn = post(conn, ~p"/api/v1/outline", nil)

assert %{"error" => "params"} = json_response(conn, 400)
assert %{"error" => "missing params"} = json_response(conn, 400)
end
end
end

0 comments on commit 77c417e

Please sign in to comment.