diff --git a/lib/livebook_web/live/app_live.ex b/lib/livebook_web/live/app_live.ex index def0ca2a9..773347a4d 100644 --- a/lib/livebook_web/live/app_live.ex +++ b/lib/livebook_web/live/app_live.ex @@ -52,7 +52,7 @@ defmodule LivebookWeb.AppLive do <.modal id="sessions-modal" show width={:big} patch={~p"/"}>

- App sessions + <%= @app.notebook_name %>

<%= if @app_settings.show_existing_sessions do %> diff --git a/lib/livebook_web/live/app_session_live.ex b/lib/livebook_web/live/app_session_live.ex index dee7c7145..4bdd6b1a3 100644 --- a/lib/livebook_web/live/app_session_live.ex +++ b/lib/livebook_web/live/app_session_live.ex @@ -112,6 +112,12 @@ defmodule LivebookWeb.AppSessionLive do Home + <.menu_item :if={@data_view.multi_session}> + <.link navigate={~p"/apps/#{@data_view.slug}"} role="menuitem"> + <.remix_icon icon="play-list-add-line" /> + Sessions + + <.menu_item :if={@data_view.show_source}> <.link patch={~p"/apps/#{@data_view.slug}/#{@session.id}/source"} role="menuitem"> <.remix_icon icon="code-line" /> @@ -288,7 +294,8 @@ defmodule LivebookWeb.AppSessionLive do ), app_status: data.app_data.status, show_source: data.notebook.app_settings.show_source, - slug: data.notebook.app_settings.slug + slug: data.notebook.app_settings.slug, + multi_session: data.notebook.app_settings.multi_session } end