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"> <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>