Commit f6438b1
authored
fix(role): default the lookup field to the user's own address; 'AAStar'→'Mycelium' ecosystem (#411)
Role page bug: the Query button did nothing because the lookup field starts empty and
queryRole() returns on empty — but users expect it defaulted to their own address. Now
loadData prefills queryAddress with the user's account (roleRes.data.address) when the
field is empty, so Query works out of the box and can still be changed to look up any
address. Also: role page subtitle 'AAStar ecosystem' → 'Mycelium ecosystem' (zh + en),
matching the Mycelium Protocol framing.
tsc + lint + i18n parity (766 keys) green.1 parent c27e7a6 commit f6438b1
3 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| |||
0 commit comments