-
- <.env_var_info env_var={env_var} edit_label={@edit_label} target={@target} />
+ <.no_entries :if={@env_vars == []}>
+ No environment variables here... yet!
+
+
+ <.table id="env-var-table" rows={@env_vars}>
+ <:col :let={env_var} label="Name"><%= env_var.name %>
+ <:action :let={env_var}>
+
+
+
+
+ <:action :let={env_var}>
+
+
+
+
+
@@ -26,50 +56,4 @@ defmodule LivebookWeb.SettingsLive.EnvVarsComponent do
"""
end
-
- defp env_var_info(assigns) do
- ~H"""
-
-
- <.labeled_text label="Name">
- <%= @env_var.name %>
-
-
-
-
- <.menu id={"env-var-#{@env_var.name}-menu"}>
- <:toggle>
-
-
- <.menu_item>
-
-
- <.menu_item variant={:danger}>
-
-
-
-
-
- """
- end
end