From 1a0b9e0f7d7e77d067e12f1a9a0e07b9aab61658 Mon Sep 17 00:00:00 2001 From: Benjamin Philip Date: Fri, 4 Feb 2022 16:06:09 +0530 Subject: [PATCH] Allow downloading source from sessions list (#980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Support downloading source on a per session basis * Update session_list_component.ex * Add test * Update lib/livebook_web/live/home_live/session_list_component.ex * Update test/livebook_web/live/home_live_test.exs Co-authored-by: José Valim Co-authored-by: Jonatan Kłosko --- .../live/home_live/session_list_component.ex | 7 +++++++ test/livebook_web/live/home_live_test.exs | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/lib/livebook_web/live/home_live/session_list_component.ex b/lib/livebook_web/live/home_live/session_list_component.ex index 917b3811e..3e90c668b 100644 --- a/lib/livebook_web/live/home_live/session_list_component.ex +++ b/lib/livebook_web/live/home_live/session_list_component.ex @@ -136,6 +136,13 @@ defmodule LivebookWeb.HomeLive.SessionListComponent do <:content> + + <.remix_icon icon="download-2-line" class="text-lg"/> + Download source +