Add scroll-to to add champ buttons

This commit is contained in:
Chaïb Martinez 2019-02-08 17:40:59 +01:00 committed by Paul Chavard
parent dbfb7804a8
commit d837066091

View file

@ -1,7 +1,7 @@
<template>
<div class="champs-editor">
<div v-if="state.typesDeChamp.length > 3" class="header">
<button class="button" @click.prevent="addChamp">
<button class="button" v-scroll-to="'.footer'" @click.prevent="addChamp">
<template v-if="state.isAnnotation">
Ajouter une annotation
</template>
@ -23,7 +23,7 @@
</Draggable>
<div class="footer">
<button class="button" @click.prevent="addChamp">
<button class="button" v-scroll-to="'.footer'" @click.prevent="addChamp">
<template v-if="state.isAnnotation">
Ajouter une annotation
</template>