kodadot / nft-gallery

Generative Art Marketplace
https://koda.art
MIT License
627 stars 358 forks source link

Autoteleport in Create #8400

Open JustLuuuu opened 9 months ago

JustLuuuu commented 9 months ago

We have auto teleport when you are creating NFTs and collections.

Go to create and create a collection/NFT with the ACC where you have enough funds but on the wrong chain.

Problem

The button mint is showing the text "Not enough funds" even though I'm eligible to teleport. Till I don't click on the button, "Not enough funds," I don't know about the Teleport option and that I could teleport my funds with auto teleport in order to mint.

Screenshot 2023-12-04 at 16 33 25

https://github.com/kodadot/nft-gallery/assets/104380776/d9b9fe6e-e0d8-4182-b1af-7279a93de827

Not sure if you understand when I want. But when someone has 10 DOTs (not bridged) and wants to create a collection on AHP, the text on the button "not enough funds" dont motivate me to continue minting and finding out about the teleport option.

In case there is a teleport option the button should not show "Not enough funds" but some other text. Teleport to mint, or just mint.

shashkovdanil commented 9 months ago

Perhaps we shouldn't show Not Enough Funds at all? Do a balance check after clicking on the action button. After pressing check the balance and if there is not enough DOT then offer to make a teleport, and if there is enough then just perform the action

exezbcz commented 9 months ago

@shashkovdanil yes, that is how its intended with a confirmation modal + auto teleport

shashkovdanil commented 9 months ago

So in this task we have to just change text of button?

exezbcz commented 9 months ago

@shashkovdanil yeah, and enable auto teleport in the confirmation modal