mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="bailey-header d-flex align-items-center mb-3">
|
||||
<div class="npc_bailey mr-3"></div>
|
||||
<div
|
||||
class="mr-3"
|
||||
:class="baileyClass"
|
||||
></div>
|
||||
<h1 v-once>
|
||||
{{ $t('newStuff') }}
|
||||
</h1>
|
||||
@@ -73,7 +76,14 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState({ user: 'user.data' }),
|
||||
...mapState({
|
||||
user: 'user.data',
|
||||
currentEvent: 'worldState.data.currentEvent',
|
||||
}),
|
||||
baileyClass () {
|
||||
if (!this.currentEvent || !this.currentEvent.season) return 'npc_bailey';
|
||||
return `npc_bailey npc_bailey_${this.currentEvent.season}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async getPosts () {
|
||||
|
||||
Reference in New Issue
Block a user