Commit 9cc2c80c authored by Kevin Robert's avatar Kevin Robert
Browse files

Ajout de la prise en charge des messages.

parent e2942f47
import Vue from 'vue';
import {Component, Prop} from 'vue-property-decorator';
import OaInput from '../../forms/input/oa-input.vue';
import OaTextarea from '@/components/forms/textarea/oa-textarea.vue';
@Component({
components: {
OaInput,
OaTextarea,
},
})
export default class RadioEdit extends Vue {
@Prop()
public configuration;
public setContent(content) {
this.configuration.content = content;
this.notifyChange();
}
public setStyleAffichage(style) {
this.configuration.style = style;
this.notifyChange();
}
public setReference(reference) {
this.configuration.reference = reference;
this.notifyChange();
}
public setDisplayCondition(displayCondition) {
this.configuration.displayCondition = displayCondition;
this.notifyChange();
}
public notifyChange() {
this.$emit('itemEdit');
}
}
<template>
<main>
<div class="mb-8 border-b-2">
<oa-input id="0" label="Type" :value="configuration.type" required="true" disabled="true"/>
<oa-textarea id="0" label="Contenu" :value="configuration.content" required="true" @update="setContent"/>
<oa-input id="0" label="Référence" :value="configuration.reference" required="true" @update="setReference"/>
<oa-input id="0" label="Condition d'affichage" :value="configuration.displayCondition" required="true" @update="setDisplayCondition"/>
<oa-input id="0" label="Style" :value="configuration.style" required="true" @update="setStyleAffichage"/>
</div>
</main>
</template>
<script lang="ts" src="./message-edit.component.ts"></script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment