disable download button when no configuration exists
This commit is contained in:
parent
48e451a510
commit
0c6b60a5e6
2 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
<div id="dynamicList"></div>
|
<div id="dynamicList"></div>
|
||||||
<br>
|
<br>
|
||||||
<div class="w3-bar">
|
<div class="w3-bar">
|
||||||
<button class="w3-button w3-bar-item w3-mobile w3-green" style="width:80%" onclick="saveDynamicDataToFile()">Download Profile</button>
|
<button id="downloadBtn" class="w3-button w3-bar-item w3-mobile w3-green" style="width:80%" onclick="saveDynamicDataToFile()" disabled>Download Profile</button>
|
||||||
<button class="w3-button w3-bar-item w3-mobile w3-dark-gray" style="width:20%" onclick="confirmDel()">Delete All</button>
|
<button class="w3-button w3-bar-item w3-mobile w3-dark-gray" style="width:20%" onclick="confirmDel()">Delete All</button>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -114,6 +114,7 @@ function buildList() {
|
||||||
infocontainer.appendChild(infop);
|
infocontainer.appendChild(infop);
|
||||||
carddiv.appendChild(infocontainer);
|
carddiv.appendChild(infocontainer);
|
||||||
parent.appendChild(carddiv);
|
parent.appendChild(carddiv);
|
||||||
|
document.getElementById("downloadBtn").disabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue