Skip to content

Commit

Permalink
Add usage note to secrets form (#2779)
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <[email protected]>
  • Loading branch information
jonatanklosko and josevalim authored Sep 14, 2024
1 parent 6c79a6d commit 7734761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/livebook_web/live/hub/secret_form_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ defmodule LivebookWeb.Hub.SecretFormComponent do
<h3 class="text-2xl font-semibold text-gray-800">
<%= @title %>
</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">
<%= @error_message %>
</div>
Expand Down
3 changes: 3 additions & 0 deletions lib/livebook_web/live/session_live/secrets_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
<h3 class="text-2xl font-semibold text-gray-800">
<%= @title %>
</h3>
<p class="text-gray-700">
The notebook can read the secret value as a LB_ prefixed environment variable.
</p>
<.grant_access_message
:if={@grant_access_secret}
secret={@grant_access_secret}
Expand Down

0 comments on commit 7734761

Please sign in to comment.