mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-11 14:25:46 +08:00
Do not show choose file button if file select component is active (#821)
This commit is contained in:
parent
4c5fd9a413
commit
1f6a75c4e3
1 changed files with 6 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue