mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Added supression support for pet/mount modals and added mount modal (#9882)
* Added supression support for pet/mount modals and added mount modal * Moved create animal * Fixed raise pet logic * Added suppresion for stable hatch modal * Fixed click paw and added growl * Fixed confirm. Fixed mount name * Suppresed confirmation
This commit is contained in:
@@ -1,22 +1,14 @@
|
||||
<template lang="pug">
|
||||
|
||||
b-modal#hatchedPet-modal(
|
||||
:hide-header="true"
|
||||
)
|
||||
div.content(v-if="pet != null")
|
||||
div.dialog-header.title(v-once) {{ $t('hatchedPetGeneric') }}
|
||||
|
||||
|
||||
div.inner-content
|
||||
div.pet-background
|
||||
div(:class="pet.class")
|
||||
|
||||
h4.title {{ pet.name }}
|
||||
div.text(v-if="!hideText", v-markdown="$t('hatchedPetHowToUse')")
|
||||
|
||||
button.btn.btn-primary(@click="close()") {{ $t('onward') }}
|
||||
|
||||
div.clearfix(slot="modal-footer")
|
||||
b-modal#hatchedPet-modal(:hide-header="true")
|
||||
div.content(v-if="pet != null")
|
||||
div.dialog-header.title(v-once) {{ $t('hatchedPetGeneric') }}
|
||||
div.inner-content
|
||||
div.pet-background
|
||||
div(:class="pet.class")
|
||||
h4.title {{ pet.name }}
|
||||
div.text(v-if="!hideText", v-markdown="$t('hatchedPetHowToUse')")
|
||||
button.btn.btn-primary(@click="close()") {{ $t('onward') }}
|
||||
div.clearfix(slot="modal-footer")
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
@@ -56,7 +48,6 @@
|
||||
color: $purple-200;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
@@ -82,7 +73,6 @@
|
||||
this.pet = item;
|
||||
this.$root.$emit('bv::show::modal', 'hatchedPet-modal');
|
||||
},
|
||||
|
||||
close () {
|
||||
this.$emit('closed', this.item);
|
||||
this.$root.$emit('bv::hide::modal', 'hatchedPet-modal');
|
||||
|
||||
Reference in New Issue
Block a user