-
Notifications
You must be signed in to change notification settings - Fork 21
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
Prototype/tip endpoint adjustments #1038
Conversation
2025dd3
to
ae35bdf
Compare
src/components/Avatar.vue
Outdated
computed: { | ||
profileIdenticonUrl() { | ||
return this.chainName | ||
? new Avatars(sprites, AVATAR_CONFIG).create(this.chainName) | ||
: `data:image/svg+xml;base64,${btoa(jdenticon.toSvg(this.address, 32))}`; | ||
}, | ||
profileImageUrl({ address, profile }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this getter depends on mapState
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, still wip :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it does not, its a prop passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address
and profile
arguments are fields of store's state? As I understand it was provided by mapState
. Without mapState
the first argument of a computed variable is the current component, but I don't see profile
variable defined there, also the comparison address === this.address
doesn't make sense then.
src/components/UserInfo.vue
Outdated
@@ -92,7 +92,7 @@ | |||
:href="explorerTransactionsUrl" | |||
> | |||
<div class="chain"> | |||
{{ userChainName ? userChainName : $t('FellowSuperhero') }} | |||
{{ userChainName && userChainName.length ? userChainName[0] : $t('FellowSuperhero') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ userChainName && userChainName.length ? userChainName[0] : $t('FellowSuperhero') }} | |
{{ userChainName?.length ? userChainName[0] : $t('FellowSuperhero') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't seem to use that syntax in the html part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have to update to vue@3 to solve this 😄 vuejs/vue#11088, #1047
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be in favour of this :D
a158489
to
e8fae7d
Compare
e8fae7d
to
7387cd3
Compare
4550e6d
to
d4d11a9
Compare
4bcbfdb
to
3f78227
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Before merging we have to revert 1c02cb0 |
6ba97cd
to
57ef518
Compare
Thank you @thepiwo ! |
No description provided.