mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
New client popups profile andmore (#8907)
* Added more styles to user profile modal and replaced memberDetail * Added notify library * Added edit avator * Added notification menu updates * Fixed lint issues * Added group invite functionality * Added many achievement modals * Added initial quest modals * Added guild, drops, and rebirth modals * Added the reset of the achievement modals and fixed lint
This commit is contained in:
55
website/client/components/achievements/dropsEnabled.vue
Normal file
55
website/client/components/achievements/dropsEnabled.vue
Normal file
@@ -0,0 +1,55 @@
|
||||
<template lang="pug">
|
||||
b-modal#drops-enabled(:title="$t('dropsEnabled')", size='lg', :hide-footer="true")
|
||||
.modal-header
|
||||
h4 {{ $t('dropsEnabled') }}
|
||||
.modal-body
|
||||
p
|
||||
figure
|
||||
.item-drop-icon(class='Pet_Egg_Wolf')
|
||||
span {{ firstDropText }}
|
||||
br
|
||||
p
|
||||
figure
|
||||
.item-drop-icon(class='Pet_Currency_Gem')
|
||||
span {{ $t('useGems') }}
|
||||
.modal-footer
|
||||
button.btn.btn-default(@click='close()') {{ $t('close') }}
|
||||
</template>
|
||||
|
||||
<style scope>
|
||||
.dont-despair, .death-penalty {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import bModal from 'bootstrap-vue/lib/components/modal';
|
||||
|
||||
import { mapState } from 'client/libs/store';
|
||||
import eggs from '../../../common/script/content/eggs';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
bModal,
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
eggs,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState({user: 'user.data'}),
|
||||
firstDropText () {
|
||||
return this.$t('firstDrop', {
|
||||
eggText: this.eggs.all.Wolf.text(),
|
||||
eggNotes: this.eggs.all.Wolf.notes(),
|
||||
});
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
close () {
|
||||
this.$root.$emit('hide::modal', 'drops-enabled');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user