lint common

This commit is contained in:
Matteo Pagliazzi
2019-10-09 20:08:36 +02:00
parent 0c27fb24a5
commit e0e9811ab6
330 changed files with 6885 additions and 7668 deletions

View File

@@ -51,38 +51,38 @@ b-modal#hatchedPet-modal(:hide-header="true")
</style>
<script>
import markdownDirective from '@/directives/markdown';
import markdownDirective from '@/directives/markdown';
export default {
data () {
return {
pet: null,
};
export default {
directives: {
markdown: markdownDirective,
},
props: {
hideText: {
type: Boolean,
},
directives: {
markdown: markdownDirective,
},
data () {
return {
pet: null,
};
},
mounted () {
this.$root.$on('hatchedPet::open', this.openDialog);
},
destroyed () {
this.$root.$off('hatchedPet::open', this.openDialog);
},
methods: {
openDialog (item) {
this.pet = item;
this.$root.$emit('bv::show::modal', 'hatchedPet-modal');
},
mounted () {
this.$root.$on('hatchedPet::open', this.openDialog);
close () {
this.$emit('closed', this.item);
this.$root.$emit('bv::hide::modal', 'hatchedPet-modal');
this.pet = null;
},
destroyed () {
this.$root.$off('hatchedPet::open', this.openDialog);
},
methods: {
openDialog (item) {
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');
this.pet = null;
},
},
props: {
hideText: {
type: Boolean,
},
},
};
},
};
</script>