mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-30 07:16:04 +08:00
ZTA metadata - help field (#2411)
Co-authored-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
f9b4d3703e
commit
ece00ad70c
2 changed files with 7 additions and 2 deletions
|
|
@ -29,8 +29,9 @@ defmodule Livebook.Config do
|
|||
%{
|
||||
type: :teleport,
|
||||
name: "Teleport",
|
||||
value: "Teleport cluster address (https://[cluster-name]:3080)",
|
||||
module: Livebook.ZTA.Teleport
|
||||
value: "Teleport cluster address",
|
||||
module: Livebook.ZTA.Teleport,
|
||||
help: "Example: https://[cluster-name]:3080"
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ defmodule LivebookWeb.AppHelpers do
|
|||
:if={zta_metadata = zta_metadata(@form[:zta_provider].value)}
|
||||
field={@form[:zta_key]}
|
||||
label={zta_metadata.value}
|
||||
help={zta_help(zta_metadata)}
|
||||
phx-debounce
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -282,4 +283,7 @@ defmodule LivebookWeb.AppHelpers do
|
|||
def update_app_list(apps, {:app_closed, app}) do
|
||||
Enum.reject(apps, &(&1.slug == app.slug))
|
||||
end
|
||||
|
||||
defp zta_help(%{help: help}), do: "#{help}"
|
||||
defp zta_help(_), do: nil
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue