-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Bug) Modifiable crowdsale: incorrect behavior if user tries to add existing whitelisted address #596
Comments
@dennis00010011b @vbaranov what you think about adding the address to the list, but highlighting it and with a warning icon? Adding a component for tooltips (https://github.com/wwayne/react-tooltip): Please, let me know which approach you think is the best. Or if you have any other idea to implement this solution. |
@fernandomg personally, I like the 2nd one with react-tooltip. My worry is about how to revert this change before saving if a user forgot how many it was reserved initially (I guess, only with refreshing the page). Maybe, we can add a small revert button, also? It will get saved values for this address in smart-contracts. |
@vbaranov thanks for the reply. It wasn't that neat solution after all. The address is duplicated in the list (the last one before the highlighted) has the current value. Maybe I should highlight that as well (with a different style) or differenciate the stored list from the one being created/added. |
oh, I see now, that it is duplicated in the list.
yes, it would be great to highlight the same address. |
@fernandomg @vbaranov
|
That's neat. There's only one thing that concerns me with this approach. What will happen if the user wants to "bulk-update" several whitelists? He/She will be forced to change one-by-one the items in the list. Thoughts? |
I sorted elements by addresses and grouped/highlighted duplicated addresses, and highlighted new addresses. |
Looks good! |
…ge-#596 (Fix) Add address to whitelist in manage screen
Steps to reproduce:
Expected result: should be error message like "address already exist ..."
OR user should be allowed to modify existed addresses(Feature)
Actual result: button "Save' is enabled, user can proceed, message "Congrats. You've successfully updated the crowdsale "
If you are reporting a problem with Token Wizard, please include the following information:
Which network did you use? (Mainnet, Kovan, Rinkeby, etc.)
Rinkeby
If you were able to create it, what is the URL of your crowdsale?
https://wizard.poa.network/invest?addr=0x011C0608e9858f22564C31199438f9a732B6f157&networkID=4
Do you have screenshots showing the problem?
https://drive.google.com/open?id=1iAliRoG85jqjbjE1Ws_B-Q33yJsUCUSy
Do you see errors in the dev console? If yes, please include a screenshot
To open the dev console in Google Chrome, press F12, or go to
View -> Developer -> Developer Tools
, and open the Console tabIf you see errors, please right click on them and "Save as..". Zip saved file and attach it to the Issue.
No
The text was updated successfully, but these errors were encountered: