Skip to content

Commit

Permalink
added send button to balances page
Browse files Browse the repository at this point in the history
closes #346
  • Loading branch information
jbibla committed Jan 12, 2018
1 parent cf13b92 commit 22b1f80
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/src/renderer/components/common/NiListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ transition(name="proposal")
+ni-li-icon

// dt/dd router-link
router-link.ni-li.ni-li-link(v-else-if='dt && to' :to="to"): .ni-li-container
router-link.ni-li.ni-li-link(v-else-if="dt && to && !btn" :to="to"): .ni-li-container
+ni-li-thumb
+ni-li-dl
+ni-li-icon

// button router-link
router-link.ni-li.ni-li-link(v-else-if="btn && to" :to="to"): .ni-li-container
+ni-li-thumb
+ni-li-dl
btn(:value="btn" icon="chevron_right" icon-pos="right").btn__primary

// dt/dd text
.ni-li(v-else-if='dt'): .ni-li-container
+ni-li-thumb
Expand Down Expand Up @@ -57,10 +63,15 @@ transition(name="proposal")
</template>

<script>
import Btn from '@nylira/vue-button'
export default {
name: 'ni-list-item',
props: ['type', 'title', 'subtitle', 'image', 'icon', 'to', 'dt', 'dd', 'href']
props: ['type', 'title', 'subtitle', 'image', 'icon', 'to', 'dt', 'dd', 'href', 'btn'],
components: {
Btn
},
}
</script>

<style lang="stylus">
Expand Down
1 change: 1 addition & 0 deletions app/src/renderer/components/wallet/PageBalances.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ page(title='Balance')
list-item(
v-for="i in filteredBalances"
v-if="wallet.balances.length > 0 && i.amount > 0"
:btn="'Send'"
:key="i.denom"
:dt="i.denom.toUpperCase()"
:dd="i.amount"
Expand Down

0 comments on commit 22b1f80

Please sign in to comment.