Allow for stat edits on mobile (#10535)

This commit is contained in:
Keith Holliday
2018-07-21 08:09:57 -05:00
committed by GitHub
parent f464403623
commit 004ab51c46

View File

@@ -135,15 +135,15 @@
.row
.col-12.col-md-3(v-for='(statInfo, stat) in allocateStatsList')
.box.white.row.col-12
.col-12.col-md-9
.col-9
div(:class='stat') {{ $t(stats[stat].title) }}
.number {{ user.stats[stat] }}
.points {{$t('pts')}}
.col-12.col-md-3
.col-3
div
.up(v-if='user.stats.points', @click='allocate(stat)')
.up(v-if='showStatsSave', @click='allocate(stat)')
div
.down(@click='deallocate(stat)', v-if='user.stats.points')
.down(v-if='showStatsSave', @click='deallocate(stat)')
.row.save-row(v-if='showStatsSave')
.col-12.col-md-6.offset-md-3.text-center
button.btn.btn-primary(@click='saveAttributes()', :disabled='loading') {{ this.loading ? $t('loading') : $t('save') }}