fix: fix checkpath button enabled when it shouldn't

This commit is contained in:
Maarten
2023-12-09 13:06:42 +01:00
parent 434baee9c0
commit bde5c534d4
2 changed files with 4 additions and 2 deletions

View File

@@ -210,7 +210,9 @@ window.addEventListener("DOMContentLoaded", () => {
document.getElementById("pickpath").addEventListener("click", () => {
if (document.getElementById("pickpath").disabled === false) ipcRenderer.send("selectpath")
})
document.getElementById("checkpath").addEventListener("click", checkPath)
document.getElementById("checkpath").addEventListener("click", () => {
if (document.getElementById("checkpath").disabled === false) checkPath()
})
document.getElementById("osdropdown").addEventListener("input", validateChoice)
document.getElementById("downloadbtn").addEventListener("click", () => {
if (document.getElementById("downloadbtn").disabled === false) submitForm()

View File

@@ -88,7 +88,7 @@
</div>
<div aria-label="Check the location that has been selected."
class="form-control btn btn-sm ml-2 tooltipped tooltipped-ne" id="checkpath" aria-disabled="false">
class="form-control btn btn-sm ml-2 tooltipped tooltipped-ne" id="checkpath" aria-disabled="true">
Open location
</div>
<span class="Label mt-1 ml-3 Label--warning" id="loader">