better doleance transition #2233
This commit is contained in:
@@ -53,6 +53,10 @@ export default {
|
||||
if (this.doleance_index < this.concernement.doleances.length-1)
|
||||
this.$refs.nextDoleanceBTN.classList.add('visible');
|
||||
},
|
||||
unmounted() {
|
||||
this.setOpenedDoleance(parseInt(this.cid), this.concernement.doleances[0].id);
|
||||
|
||||
},
|
||||
methods: {
|
||||
...mapActions(ConcernementsStore,['setOpenedDoleance']),
|
||||
nextDoleance(){
|
||||
@@ -80,7 +84,7 @@ export default {
|
||||
that.$refs.nextDoleanceBTN.classList.remove('animeleft', 'animeright');
|
||||
that.$refs.nextDoleanceBTN.classList.toggle('visible', that.doleance_index < that.concernement.doleances.length-1);
|
||||
};
|
||||
}(this)), 1000)
|
||||
}(this)), 2000)
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user