demarches-normaliennes/app/javascript/new_design/administrateur/DraggableList.js

15 lines
247 B
JavaScript
Raw Normal View History

2018-11-14 16:26:00 +01:00
export default {
props: ['state', 'version'],
2018-11-14 16:26:00 +01:00
methods: {
addChamp() {
this.state.typesDeChamp.push({
type_champ: 'text',
types_de_champ: []
2018-11-14 16:26:00 +01:00
});
},
save() {
this.state.flash.success();
2018-11-14 16:26:00 +01:00
}
}
};