Skip to content
Snippets Groups Projects
Message.vue 1.65 KiB
Newer Older
  • Learn to ignore specific revisions
  • <template>
    	<div class="app-content-detail">
    		<div id="mail-message-header" class="section">
    			<h2 :title="subject">{{subject}}</h2>
    			<p class="transparency">
    
    				<AddressList :entries="from"/>
    				to <!-- TODO: translate -->
    				<AddressList :entries="to"/>
    
    Christoph Wurst's avatar
    Christoph Wurst committed
    				<template v-if="cc.length">
    
    Christoph Wurst's avatar
    Christoph Wurst committed
    					(cc <!-- TODO: translate -->
    
    Christoph Wurst's avatar
    Christoph Wurst committed
    					<AddressList :entries="cc"/><!--
    					-->)
    				</template>
    
    			</p>
    		</div>
    		<div class="mail-message-body">
    			<div id="mail-content">
    
    				<MessageHTMLBody v-if="hasHtmlBody"/>
    				<MessagePlainTextBody v-else
    
    									  :body="body"
    									  :signature="signature"/>
    
    			</div>
    			<div class="mail-message-attachments"></div>
    			<div id="reply-composer"></div>
    			<input type="button" id="forward-button" value="Forward">
    		</div>
    
    	</div>
    </template>
    
    <script>
    
    	import AddressList from "./AddressList";
    
    	import Composer from "./Composer";
    
    	import MessageHTMLBody from "./MessageHTMLBody";
    	import MessagePlainTextBody from "./MessagePlainTextBody";
    
    	export default {
    		name: "Message",
    
    		components: {
    			AddressList,
    			Composer,
    			MessageHTMLBody,
    			MessagePlainTextBody,
    		},
    
    		data () {
    
    				from: [
    					{
    						label: 'Backbone Marionette',
    						email: 'backbone.marionette@frameworks.js',
    					}
    				],
    				to: [
    					{
    						label: 'React',
    						email: 'react@frameworks.js',
    					},
    					{
    						label: 'Angular',
    						email: 'angular@frameworks.js',
    					}
    				],
    
    Christoph Wurst's avatar
    Christoph Wurst committed
    				cc: [
    					{
    						label: 'Underscore Jayes',
    						email: 'underscore@frameworks.js',
    					}
    				],
    
    				subject: 'Do you enjoy the Vue?',
    				hasHtmlBody: false,
    
    				body: 'Henlo!',
    				signature: 'Backbone Marionette',