mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 18:15:56 +08:00
adding a new message to close session modal (#629)
* adding a new message to close session modal when the session has a file attached to it * Update lib/livebook_web/live/home_live/close_session_component.ex Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com> Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
parent
e2e9c95880
commit
887a4ad0d1
|
@ -11,7 +11,10 @@ defmodule LivebookWeb.HomeLive.CloseSessionComponent do
|
||||||
<p class="text-gray-700">
|
<p class="text-gray-700">
|
||||||
Are you sure you want to close this section -
|
Are you sure you want to close this section -
|
||||||
<span class="font-semibold">“<%= @session.notebook_name %>”</span>?
|
<span class="font-semibold">“<%= @session.notebook_name %>”</span>?
|
||||||
This won't delete any persisted files.
|
<br/>
|
||||||
|
<%= if @session.file,
|
||||||
|
do: "This won't delete any persisted files.",
|
||||||
|
else: "The notebook is not persisted and all content will be lost." %>
|
||||||
</p>
|
</p>
|
||||||
<div class="mt-8 flex justify-end space-x-2">
|
<div class="mt-8 flex justify-end space-x-2">
|
||||||
<button class="button button-red" phx-click="close" phx-target={@myself}>
|
<button class="button button-red" phx-click="close" phx-target={@myself}>
|
||||||
|
|
Loading…
Reference in a new issue