Do not show choose file button if file select component is active (#821)

This commit is contained in:
Benjamin Philip 2021-12-23 16:59:49 +05:30 committed by GitHub
parent 4c5fd9a413
commit 1f6a75c4e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,10 +91,12 @@ defmodule LivebookWeb.SessionLive.PersistenceLive do
<span class="text-gray-700 whitespace-no-wrap">
no file selected
</span>
<button class="button-base button-gray button-small"
phx-click="open_file_select">
Choose a file
</button>
<%= unless @draft_file do %>
<button class="button-base button-gray button-small"
phx-click="open_file_select">
Choose a file
</button>
<% end %>
<% end %>
</div>
</form>