Add usage note to secrets form (#2779)

Co-authored-by: José Valim <jose.valim@dashbit.co>
This commit is contained in:
Jonatan Kłosko 2024-09-14 19:46:05 +02:00 committed by GitHub
parent 6c79a6dbb5
commit 7734761383
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -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>

View file

@ -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}