-
Notifications
You must be signed in to change notification settings - Fork 98
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
clicking a balance will go to the send page with that denom selected... #299
Conversation
… balance page displays balances and denominations on the network as separate lists
@@ -68,7 +68,7 @@ export default [ | |||
|
|||
// WALLET | |||
{ path: '/', name: 'balances', component: wallet('Balances') }, | |||
{ path: '/wallet/send', name: 'send', component: wallet('Send') }, | |||
{ path: '/wallet/send', name: 'send', props: true, component: wallet('Send') }, |
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.
Nice learning. :)
@@ -8,7 +8,7 @@ page(title='Send') | |||
field-id='send-denomination' field-label='Denomination') | |||
field#send-denomination( | |||
type="select" | |||
v-model="fields.denom" | |||
v-model="fields.denom || denom" |
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 am not sure if this works properly. This will set the model to use the property "denom". onSubmit uses "fields.denom". Is it tested, that this works? I proposed another way to set the denom.
mounted () { | ||
if (this.denominations.length === 1) { | ||
this.fields.denom = this.denominations[0].value | ||
if (this.denom) { |
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 set the denom from the property here. So the variable "fields.denom" stays the one truth for the currently selected denom.
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 think this is better. thanks for the improvement.
... balance page displays balances and denominations on the network as separate lists
part of #128