fix: Display a message when no HNS.ID domains are found
All checks were successful
Build Docker / Build Docker (push) Successful in 27s

This commit is contained in:
Nathan Woodburn 2024-06-21 11:40:13 +10:00
parent 9e1dfcf091
commit 4b0bf2fd8a
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -271,8 +271,11 @@
<h4 style="text-align: center;">Logged in with HNS.ID</h4>
<span style="text-align: center;display: block;">Select a HNS.ID domain to log in with</span><br>
{% if hnsid.nfts == [] %}
<p style="text-align: center;">No HNS.ID domains found</p>
{% else %}
<span style="text-align: center;display: block;">Select a HNS.ID domain to log in with</span><br>
<div style="text-align: center;">
<select id="nftDropdown">
{% for nft in hnsid.nfts %}
@ -281,6 +284,7 @@
</select>
<button onclick="HNSIDLoginSelect();">Login</button>
</div>
{% endif %}
<script>
function HNSIDLoginSelect() {
var selectedNFT = document.getElementById("nftDropdown").value;