fix tests
This commit is contained in:
parent
e0484a0533
commit
7f15909cc6
4 changed files with 19 additions and 8 deletions
|
|
@ -54,6 +54,7 @@ defmodule MvWeb.CustomFieldLive.IndexComponent do
|
|||
<.table
|
||||
id="custom_fields_table"
|
||||
rows={@streams.custom_fields}
|
||||
row_id={fn {_stream_key, cf} -> "custom_fields-#{cf.id}" end}
|
||||
row_click={
|
||||
fn {_id, custom_field} ->
|
||||
JS.push("edit_custom_field", value: %{id: custom_field.id}, target: @myself)
|
||||
|
|
|
|||
|
|
@ -307,6 +307,7 @@ defmodule MvWeb.RoleLive.Show do
|
|||
type="button"
|
||||
variant="danger"
|
||||
phx-click={JS.push("delete", value: %{id: @role.id})}
|
||||
data-testid="role-delete-confirm"
|
||||
aria-label={gettext("Delete role")}
|
||||
>
|
||||
{gettext("Delete")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue