mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 10:05:57 +08:00
Add usage note to secrets form (#2779)
Co-authored-by: José Valim <jose.valim@dashbit.co>
This commit is contained in:
parent
6c79a6dbb5
commit
7734761383
|
@ -35,6 +35,9 @@ defmodule LivebookWeb.Hub.SecretFormComponent do
|
||||||
<h3 class="text-2xl font-semibold text-gray-800">
|
<h3 class="text-2xl font-semibold text-gray-800">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h3>
|
</h3>
|
||||||
|
<p class="text-gray-700">
|
||||||
|
A notebook can read the secret value as a LB_ prefixed environment variable.
|
||||||
|
</p>
|
||||||
<div :if={@error_message} class="error-box">
|
<div :if={@error_message} class="error-box">
|
||||||
<%= @error_message %>
|
<%= @error_message %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -41,6 +41,9 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
|
||||||
<h3 class="text-2xl font-semibold text-gray-800">
|
<h3 class="text-2xl font-semibold text-gray-800">
|
||||||
<%= @title %>
|
<%= @title %>
|
||||||
</h3>
|
</h3>
|
||||||
|
<p class="text-gray-700">
|
||||||
|
The notebook can read the secret value as a LB_ prefixed environment variable.
|
||||||
|
</p>
|
||||||
<.grant_access_message
|
<.grant_access_message
|
||||||
:if={@grant_access_secret}
|
:if={@grant_access_secret}
|
||||||
secret={@grant_access_secret}
|
secret={@grant_access_secret}
|
||||||
|
|
Loading…
Reference in a new issue