feat(footer): always show expanded footer (#10862)

This commit is contained in:
Matteo Pagliazzi
2018-11-26 10:37:29 +01:00
committed by GitHub
parent c64d4b0914
commit 6181328ac1

View File

@@ -2,8 +2,8 @@
.row.footer-row .row.footer-row
buy-gems-modal(v-if='user') buy-gems-modal(v-if='user')
//modify-inventory(v-if="isUserLoaded") //modify-inventory(v-if="isUserLoaded")
footer.col-12(:class="{expanded: isExpandedFooter}") footer.col-12.expanded
.row(v-if="isExpandedFooter") .row
.col-12.col-md-2 .col-12.col-md-2
h3 h3
a(href='https://itunes.apple.com/us/app/habitica/id994882113?ls=1&mt=8', target='_blank') {{ $t('mobileIOS') }} a(href='https://itunes.apple.com/us/app/habitica/id994882113?ls=1&mt=8', target='_blank') {{ $t('mobileIOS') }}
@@ -103,11 +103,6 @@
.col-12.col-md-2.text-center .col-12.col-md-2.text-center
.logo.svg-icon(v-html='icons.gryphon') .logo.svg-icon(v-html='icons.gryphon')
.col-12.col-md-5.text-right .col-12.col-md-5.text-right
template(v-if="!isExpandedFooter")
span
a(:href="getDataDisplayToolUrl", target='_blank') {{ $t('dataDisplayTool') }}
span.ml-4
a(target="_blanck", href="/static/community-guidelines") {{ $t('communityGuidelines') }}
span.ml-4 span.ml-4
a(target="_blanck", href="/static/privacy") {{ $t('privacy') }} a(target="_blanck", href="/static/privacy") {{ $t('privacy') }}
span.ml-4 span.ml-4
@@ -128,13 +123,6 @@
a { a {
color: #2995cd; color: #2995cd;
} }
&:not(.expanded) {
hr {
margin-top: 0px;
margin-bottom: 7px;
}
}
} }
h3 { h3 {
@@ -282,9 +270,6 @@ export default {
computed: { computed: {
...mapState({user: 'user.data'}), ...mapState({user: 'user.data'}),
...mapState(['isUserLoaded']), ...mapState(['isUserLoaded']),
isExpandedFooter () {
return this.$route.name === 'tasks' ? false : true;
},
getDataDisplayToolUrl () { getDataDisplayToolUrl () {
const base = 'https://oldgods.net/habitrpg/habitrpg_user_data_display.html'; const base = 'https://oldgods.net/habitrpg/habitrpg_user_data_display.html';
if (!this.user) return; if (!this.user) return;