defmodule LivebookWeb.SessionLive.AppInfoComponent do use LivebookWeb, :live_component import LivebookWeb.AppHelpers alias Livebook.Notebook.AppSettings @impl true def mount(socket) do {:ok, assign(socket, deploy_confirmation: false)} end @impl true def update(assigns, socket) do changeset = case socket.assigns do %{changeset: changeset} when changeset.data == assigns.settings -> changeset _ -> AppSettings.change(assigns.settings) end {:ok, socket |> assign(assigns) |> assign(changeset: changeset)} end @impl true def render(assigns) do ~H"""