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:
Matheus Cumpian 2021-10-21 10:01:45 -03:00 committed by GitHub
parent e2e9c95880
commit 887a4ad0d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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