Apps: Simplify list index, intentions (all arrays)

Created on 30 Jul 2018  路  3Comments  路  Source: polkadot-js/apps

For arrays, show the actual index in the list, i.e. for unstake the index from intentions is now to be provided, no need to get everybody to count from 0 all the time.

previously: (sample of system.validators(), staking.intents() and all arrays to show offset)

5F2ABwFm3fUhWMZT7Zeu7UjCr1dndjJD7qBeHChJhiJC949V, 
5CCtQPAYtuDXt6H4WMrn5nFNk4gemkVRD3k1r1mA7YiZLPBq, 
5Dpq7rU6KAZVdRtcegvpCoeJtZzFPzieRkRz4xajRAiMRkCf, 
5EyrU8k6worwXWfW2LajRvS7XF6eta286tMpHeHUwMPpzQ9F, 
5GfSwNpBSe1MrxRAucUjxaRvs9ibpG4oU9CGBUxdKRxsN9Ur

proposed:

0: 5F2ABwFm3fUhWMZT7Zeu7UjCr1dndjJD7qBeHChJhiJC949V, 
1: 5CCtQPAYtuDXt6H4WMrn5nFNk4gemkVRD3k1r1mA7YiZLPBq, 
2: 5Dpq7rU6KAZVdRtcegvpCoeJtZzFPzieRkRz4xajRAiMRkCf, 
3: 5EyrU8k6worwXWfW2LajRvS7XF6eta286tMpHeHUwMPpzQ9F, 
4: 5GfSwNpBSe1MrxRAucUjxaRvs9ibpG4oU9CGBUxdKRxsN9Ur
@app-storage good first issue

Most helpful comment

Screenshot from commit 8b003ba changes:

screen shot 2018-07-30 at 3 20 51 pm

All 3 comments

Just add to base valueToText where arrays are looped, concat index with item

Screenshot from commit 8b003ba changes:

screen shot 2018-07-30 at 3 20 51 pm

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

Was this page helpful?
0 / 5 - 0 ratings