Update the button style for Author's form.
This commit is contained in:
@@ -10,6 +10,9 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents do
|
|||||||
import MyComponents.Buttons, only: [
|
import MyComponents.Buttons, only: [
|
||||||
success_button: 1,
|
success_button: 1,
|
||||||
primary_button: 1,
|
primary_button: 1,
|
||||||
|
save_button: 1,
|
||||||
|
edit_button: 1,
|
||||||
|
cancel_button: 1,
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -46,12 +46,12 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.success_button phx-disable-with="Saving...">
|
<.save_button phx-disable-with="Saving...">
|
||||||
Save Author
|
Save
|
||||||
</.success_button>
|
</.save_button>
|
||||||
<.primary_button phx-click="cancel" phx-target={@myself}>
|
<.cancel_button phx-click="cancel" phx-target={@myself}>
|
||||||
Cancel
|
Cancel
|
||||||
</.primary_button>
|
</.cancel_button>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.simple_form>
|
</.simple_form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user