feat: conistent danger zone delete flow
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e5a6003ace
commit
91cf7cca6a
19 changed files with 499 additions and 287 deletions
|
|
@ -101,6 +101,17 @@ defmodule MvWeb.DatafieldsLive do
|
|||
{:noreply, assign(socket, :active_editing_section, section)}
|
||||
end
|
||||
|
||||
# Open delete modal for custom field (triggered from Danger zone in FormComponent)
|
||||
@impl true
|
||||
def handle_info({:open_delete_modal_for, custom_field}, socket) do
|
||||
send_update(MvWeb.CustomFieldLive.IndexComponent,
|
||||
id: "custom-fields-component",
|
||||
open_delete_for_id: custom_field.id
|
||||
)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:member_field_saved, _member_field, action}, socket) do
|
||||
{:ok, updated_settings} = Membership.get_settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue