export default { name: 'FormRecipient', props: { type: { type: String, required: true }, phone: { type: String, required: true }, }, data() { return { recipientTypes: [] }; }, computed: { phone_id() { return this.phone + this.type; } }, mounted() { this.recipientTypes = [ { value: window.TYPEUSER, text: 'Private Message' }, { value: window.TYPEGROUP, text: 'Group Message' }, { value: window.TYPENEWSLETTER, text: 'Newsletter' } ]; }, methods: { updateType(event) { this.$emit('update:type', event.target.value); }, updatePhone(event) { this.$emit('update:phone', event.target.value); } }, template: `
` }