working on delete
Some checks failed
CI/CD Pipeline / build (push) Failing after 4s

This commit is contained in:
2026-03-18 09:21:34 -06:00
parent 9a9522ecb6
commit b2f53942a2
4 changed files with 113 additions and 12 deletions

View File

@@ -33,6 +33,14 @@ defmodule ElixirAiWeb.HomeLive do
<p class="mt-2 text-sm text-red-400">{@error}</p>
<% end %>
</div>
<div>
<.live_component
module={ElixirAiWeb.AiProvidersLive}
id="ai-providers"
providers={@ai_providers}
/>
</div>
</div>
"""
end
@@ -130,4 +138,8 @@ defmodule ElixirAiWeb.HomeLive do
def handle_info({:provider_added, _attrs}, socket) do
{:noreply, assign(socket, ai_providers: AiProvider.all())}
end
def handle_info({:provider_deleted, _id}, socket) do
{:noreply, assign(socket, ai_providers: AiProvider.all())}
end
end