From c10aa91357ff450a046de5e00439838a5860273d Mon Sep 17 00:00:00 2001 From: Jinkyou Son Date: Mon, 27 Jan 2025 10:26:50 +0900 Subject: [PATCH] improvement: Allow changing button text of Reset.Form (#566) --- lib/ash_authentication_phoenix/components/reset/form.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ash_authentication_phoenix/components/reset/form.ex b/lib/ash_authentication_phoenix/components/reset/form.ex index 25e67bbf..5da3d8d9 100644 --- a/lib/ash_authentication_phoenix/components/reset/form.ex +++ b/lib/ash_authentication_phoenix/components/reset/form.ex @@ -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 """ @@ -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}