Files
habitica/website/client/components/achievements/achievementAvatar.vue
Keith Holliday 36a933d0c4 Client fixed sept 4 (#9019)
* 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
2017-09-05 12:34:00 -06:00

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>