mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* Fixed background purchasing * Added challenge export * Fixed is leader filter * Fixed staff icon * Add block to profile modal * Added initial send gems modal * Added modal stack * Fixed lint issues * Updated notification styles * Updated level up styles * Fixed many achievement styles * Fixed notification navigate to same route with different param * Added mark chat seen and remove new messages * Added scroll to notifications * Updated hall loading
27 lines
493 B
Vue
27 lines
493 B
Vue
<template lang="pug">
|
|
div(:class='achievementClass')
|
|
//- +generatedAvatar({sleep: false})
|
|
avatar(:member='user', :avatarOnly='true', :withBackground='true')
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'client/libs/store';
|
|
import Avatar from '../avatar';
|
|
|
|
export default {
|
|
components: {
|
|
Avatar,
|
|
},
|
|
data () {
|
|
return {
|
|
achievementClass: `achievement-${this.badge}2x`,
|
|
};
|
|
},
|
|
computed: {
|
|
...mapState({
|
|
user: 'user.data',
|
|
}),
|
|
},
|
|
};
|
|
</script>
|