From 58ce3a9a42f12b523295d47111b8c4f016fd62ee Mon Sep 17 00:00:00 2001 From: Keith Holliday Date: Fri, 27 Apr 2018 11:07:41 -0500 Subject: [PATCH 1/5] Added bulk allocation (#10283) --- .../components/userMenu/profileStats.vue | 64 +++++++++++++++---- 1 file changed, 53 insertions(+), 11 deletions(-) diff --git a/website/client/components/userMenu/profileStats.vue b/website/client/components/userMenu/profileStats.vue index 3327904110..a0a2cc55bd 100644 --- a/website/client/components/userMenu/profileStats.vue +++ b/website/client/components/userMenu/profileStats.vue @@ -120,7 +120,7 @@ .row.title-row .col-12.col-md-6 h3(v-if='userLevel100Plus', v-once, v-html="$t('noMoreAllocate')") - h3(v-if='user.stats.points || userLevel100Plus') + h3 | {{$t('pointsAvailable')}} .counter.badge(v-if='user.stats.points || userLevel100Plus') | {{user.stats.points}}  @@ -131,16 +131,21 @@ v-model='user.preferences.automaticAllocation', @change='setAutoAllocate()' ) - .row .col-12.col-md-3(v-for='(statInfo, stat) in allocateStatsList') .box.white.row.col-12 - .col-12 + .col-12.col-md-8 div(:class='stat') {{ $t(stats[stat].title) }} .number {{ user.stats[stat] }} .points {{$t('pts')}} .col-12.col-md-4 - .up(v-if='user.stats.points', @click='allocate(stat)') + div + .up(v-if='user.stats.points', @click='allocate(stat)') + div + .down(@click='deallocate(stat)') + .row.save-row + .col-12.col-md-6.offset-md-3.text-center + button.btn.btn-primary(@click='saveAttributes()', :disabled='loading') {{ this.loading ? $t('loading') : $t('save') }}