mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17: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:
@@ -31,7 +31,7 @@
|
||||
option(v-for='sound in availableAudioThemes', :value='sound') {{ $t(`audioTheme_${sound}`) }}
|
||||
hr
|
||||
|
||||
.form-horizontal(v-if='user.flags.classSelected && !user.preferences.disableClasses')
|
||||
.form-horizontal(v-if='hasClass')
|
||||
h5 {{ $t('characterBuild') }}
|
||||
h6(v-once) {{ $t('class') + ': ' }}
|
||||
// @TODO: what is classText
|
||||
@@ -270,6 +270,9 @@ export default {
|
||||
dayStart () {
|
||||
return this.user.preferences.dayStart;
|
||||
},
|
||||
hasClass () {
|
||||
return this.$store.getters['members:hasClass'](this.user);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
set (preferenceType, subtype) {
|
||||
|
||||
Reference in New Issue
Block a user