Skip to content

Commit

Permalink
improvement: Allow changing button text of Reset.Form (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
nallwhy authored Jan 27, 2025
1 parent 64f8ab5 commit c10aa91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ash_authentication_phoenix/components/reset/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule AshAuthentication.Phoenix.Components.Reset.Form do
label_class: "CSS class for the `h2` element.",
form_class: "CSS class for the `form` element.",
spacer_class: "CSS classes for space between the password input and submit elements.",
button_text: "Text for the submit button.",
disable_button_text: "Text for the submit button when the request is happening."

@moduledoc """
Expand Down Expand Up @@ -151,6 +152,7 @@ defmodule AshAuthentication.Phoenix.Components.Reset.Form do
strategy={@strategy}
form={form}
action={:reset}
label={_gettext(override_for(@overrides, :button_text))}
disable_text={_gettext(override_for(@overrides, :disable_button_text))}
overrides={@overrides}
gettext_fn={@gettext_fn}
Expand Down

0 comments on commit c10aa91

Please sign in to comment.