-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from cosmos/peng/reinstate-app-footer
reinstate NiAppFooter
- Loading branch information
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
<template lang='pug'> | ||
footer.app-footer | ||
.container | ||
.copyright © 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… | ||
</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> |