Skip to content

Commit

Permalink
Merge pull request #114 from cosmos/peng/reinstate-app-footer
Browse files Browse the repository at this point in the history
reinstate NiAppFooter
  • Loading branch information
faboweb authored Nov 27, 2017
2 parents bf03727 + f46cf90 commit b528dce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
app-header
#app-content
#app-main: router-view
// app-footer
app-footer
notifications(:notifications='notifications' theme='cosmos')
modal-help
</template>
Expand Down
37 changes: 26 additions & 11 deletions app/src/renderer/components/common/AppFooter.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,45 @@
<template lang='pug'>
footer.app-footer
.container
.copyright &copy; 2017 Interchain Foundation
.app-footer-container(v-if='connected')
.afi.afi-success
i.material-icons done
span {{ lastHeader.chain_id }} (\#{{ lastHeader.height }})
.afi
i.material-icons settings_ethernet
span {{ nodeIP }}
.app-footer-container(v-else)
.afi
i.material-icons.fa-spin rotate_right
span Connecting&hellip;
</template>

<script>
import {mapGetters} from 'vuex'
import { mapGetters } from 'vuex'
export default {
name: 'app-footer',
computed: {
...mapGetters(['syncHeight', 'syncTime', 'syncing', 'numPeers'])
...mapGetters(['lastHeader', 'nodeIP', 'connected'])
}
}
</script>

<style lang="stylus">
@require '~@/styles/variables.styl'
.app-footer
.container
border-top 1px solid bc
height 3rem
.app-footer-container
border-top 1px solid bc
height 3rem
display flex
align-items center
justify-content space-between
font-label()
color dim
.afi
display flex
align-items center
justify-content space-between
padding 0 1rem
color dim
i
margin-right 0.5rem
</style>

0 comments on commit b528dce

Please sign in to comment.