better doleance transition #2233

This commit is contained in:
2024-01-12 11:10:42 +01:00
parent 89889df66c
commit 9d36ed7941
3 changed files with 43 additions and 32 deletions

View File

@@ -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: {