mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
* Update getClass() for users who have not yet selected a class * Added tests for members.getClass() * fix linter errors * Update test * Update import in test to point to correct module * use hasClass() getter where appropriate * Fix linter error
This commit is contained in:
@@ -235,7 +235,7 @@ div
|
||||
li
|
||||
strong {{$t('buffs')}}:
|
||||
| {{user.stats.buffs[stat]}}
|
||||
#allocation(v-if='user._id === userLoggedIn._id && user.flags.classSelected && !user.preferences.disableClasses')
|
||||
#allocation(v-if='user._id === userLoggedIn._id && hasClass')
|
||||
.row.title-row
|
||||
.col-12.col-md-6
|
||||
h3(v-if='userLevel100Plus', v-once, v-html="$t('noMoreAllocate')")
|
||||
@@ -733,6 +733,9 @@ export default {
|
||||
startingPageOption () {
|
||||
return this.$store.state.profileOptions.startingPage;
|
||||
},
|
||||
hasClass () {
|
||||
return this.$store.getters['members:hasClass'](this.userLoggedIn);
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
startingPageOption () {
|
||||
|
||||
Reference in New Issue
Block a user