phoenix
phoenix copied to clipboard
Button text should change dynamically
Hi,
On send window the text (Paste payment request) should show if what is copied is a lightning invoice. But if what is copied is a bitcoin address, the text should be changed to (Paste bitcoin address).
And if nothing is copied on clipboard, maybe the button should be hidden. Do not appear.
Hi @dpad85,
Maybe this issue can contain the tag "good first issue", I think it is good to start to read the code with something to resolve. In addition, if the PRs are welcome and it issue is still unresolved, I want ask if I can take the lock about this issue. :smile:
Hi Vincenzo, you can take this issue if you want. I'm not a big fan of having an app watching my clipboard, I find it quite invasive. It does provide good UX for new users though!
Hi @dpad85,
Thank you. I also noted that the text inside the paste button was already changed, so the next step to do is hide the button is inside the clipboard if there isn't something interesting, right?
Or maybe just disable
or blur the button, so first time users notice the feature. Isn't that what already happens? I don't have my phone with me right now, but seem to remember that.
And if nothing is copied on clipboard, maybe the button should be hidden. Do not appear.
Hi @dpad85,
Thank you. I also noted that the text inside the paste button was already changed, so the next step to do is hide the button is inside the clipboard if there isn't something interesting, right?