Skip to content
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

Merged
merged 4 commits into from
Jan 2, 2018

Conversation

jbibla
Copy link
Collaborator

@jbibla jbibla commented Dec 29, 2017

... balance page displays balances and denominations on the network as separate lists

part of #128

… balance page displays balances and denominations on the network as separate lists
@jbibla jbibla requested review from mappum and nylira as code owners December 29, 2017 23:12
@@ -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') },
Copy link
Collaborator

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"
Copy link
Collaborator

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) {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

@faboweb faboweb merged commit 0f0e3bd into develop Jan 2, 2018
@faboweb faboweb deleted the jordan/128-app-menu-1 branch January 2, 2018 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants