mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-09 14:34:42 +08:00
Disable Choose button if draft file is a directory (#823)
* Disable Choose button if draft file is a directory
* Fix warnings
* Decide if choose is disabled on handle info
* Revert "Decide if choose is disabled on handle info"
This reverts commit 43a2cbc5ea
.
* Use the disabled attribute
This commit is contained in:
parent
39fedd43ca
commit
fc3fad6543
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ defmodule LivebookWeb.SessionLive.PersistenceLive do
|
|||
</button>
|
||||
<button class="button-base button-blue"
|
||||
phx-click="confirm_file"
|
||||
disabled={FileSystem.File.dir?(@draft_file)}
|
||||
tabindex="-1">
|
||||
Choose
|
||||
</button>
|
||||
|
|
Loading…
Add table
Reference in a new issue