gandlafbtc / nutstash-wallet

Cashu Wallet with multi-mint and send-to-nostr-key functionality
https://v2.nutstash.app
GNU General Public License v3.0
44 stars 10 forks source link

Allow undo when accidentally deleting mint. #65

Closed mattsats closed 1 year ago

mattsats commented 1 year ago

I'm always frustrated when I accidentally click delete mint.

Solution display an undo button right after removing mint url to add the mint back incase someone is exploring the app and accidentally deleted it.

I will be happy to tackle this issue myself, but I am a pleb dev and will need guidance.

gandlafbtc commented 1 year ago

We could also switch this around and add a pop up dialog asking for confirmation. Would probably be easier t implement and also better UX in my opinion.

mattsats commented 1 year ago

Sounds good! Asking for confirmation seems like the right way to go.

gandlafbtc commented 1 year ago

If you want, you can implement it! you can get some inspiration from the delete history button, there we have a pop up for confirming deletion.

https://github.com/gandlafbtc/nutstash-wallet/blob/main/src/comp/elements/ResetHistoryButton.svelte

Let me know if you need some more guidance!

you can also join our dev group on telegram : https://t.me/+DRy-rSe5wQtlYTk1

mattsats commented 1 year ago

Great thanks!

gandlafbtc commented 1 year ago

I re opened the issue, we can close it after we have a working implementation. Feel free to work on it and ask me for help if you need any.

gandlafbtc commented 1 year ago

I'll implement it :P