mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-12 15:55:26 +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">
|
<span class="text-gray-700 whitespace-no-wrap">
|
||||||
no file selected
|
no file selected
|
||||||
</span>
|
</span>
|
||||||
<button class="button-base button-gray button-small"
|
<%= unless @draft_file do %>
|
||||||
phx-click="open_file_select">
|
<button class="button-base button-gray button-small"
|
||||||
Choose a file
|
phx-click="open_file_select">
|
||||||
</button>
|
Choose a file
|
||||||
|
</button>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue