mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +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
47 lines
1.1 KiB
Vue
47 lines
1.1 KiB
Vue
<template lang="pug">
|
|
b-modal#contributor(:title="$t('modalContribAchievement')", size='md', :hide-footer="true")
|
|
.modal-body
|
|
.col-12
|
|
achievement-avatar.avatar
|
|
.col-6.offset-3.text-center
|
|
| {{ $t('contribModal', {name: user.profile.name, level: user.contributor.level}) }}
|
|
a(:href="$t('conRewardsURL')", target='_blank') {{ $t('contribLink') }}
|
|
br
|
|
button.btn.btn-primary(style='margin-top:1em' @click='close()') {{ $t('huzzah') }}
|
|
br
|
|
achievement-footer
|
|
</template>
|
|
|
|
<style scoped>
|
|
.avatar {
|
|
width: 140px;
|
|
margin: 0 auto;
|
|
margin-bottom: 1.5em;
|
|
margin-top: 1.5em;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import bModal from 'bootstrap-vue/lib/components/modal';
|
|
import achievementFooter from './achievementFooter';
|
|
import achievementAvatar from './achievementAvatar';
|
|
|
|
import { mapState } from 'client/libs/store';
|
|
|
|
export default {
|
|
components: {
|
|
bModal,
|
|
achievementFooter,
|
|
achievementAvatar,
|
|
},
|
|
computed: {
|
|
...mapState({user: 'user.data'}),
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('hide::modal', 'contributor');
|
|
},
|
|
},
|
|
};
|
|
</script>
|