Skip to content

Commit

Permalink
press the enter key to find collection
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Jun 4, 2024
1 parent f96f704 commit dddb46a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion components/nft/SearchNftModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@

<div class="mb-3">
<label :for="'input-'+componentId" class="form-label">Enter NFT collection address or unique ID:</label>
<input v-model="searchText" type="text" class="form-control" :for="'input-'+componentId" />
<input
v-model="searchText"
type="text"
class="form-control"
:for="'input-'+componentId"
v-on:keyup.enter="findNft"
/>
</div>

<p v-if="findError">Error: Collection not found...</p>
Expand Down
2 changes: 0 additions & 2 deletions pages/nft/collection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,6 @@ export default {
if (tokenURI.startsWith("data:application/json;")) {
const metadata = JSON.parse(atob(tokenURI.replace("data:application/json;base64,", "")));
console.log(metadata);
if (metadata?.name) {
this.cName = metadata.name.replace("#1", "");
Expand Down

0 comments on commit dddb46a

Please sign in to comment.