mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +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:
@@ -116,7 +116,7 @@
|
||||
popover-placement='right', :popover="$t('streaksFrozenText')")
|
||||
| {{ $t('streaksFrozen') }}
|
||||
|
||||
.col-4(v-if='user.flags.classSelected && !user.preferences.disableClasses')
|
||||
.col-4(v-if='hasClass')
|
||||
h3(v-once) {{ $t('characterBuild') }}
|
||||
h4(v-once) {{ $t('class') + ': ' }}
|
||||
span {{ classText }}
|
||||
@@ -239,6 +239,9 @@ export default {
|
||||
|
||||
return classTexts[this.user.stats.class];
|
||||
},
|
||||
hasClass () {
|
||||
return this.$store.getters['members:hasClass'](this.user);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
formatAnimal (animalName, type) {
|
||||
|
||||
Reference in New Issue
Block a user