Show previews in actions

This commit is contained in:
Pavel Djundik 2018-07-12 19:59:13 +03:00 committed by Pavel Djundik
parent 499beb0257
commit 825e3beba6

View File

@ -4,17 +4,23 @@
<span <span
ref="text" ref="text"
class="text"><ParsedMessage :message="message"/></span> class="text"><ParsedMessage :message="message"/></span>
<LinkPreview
v-for="preview in message.previews"
:key="preview.link"
:link="preview"/>
</span> </span>
</template> </template>
<script> <script>
import ParsedMessage from "../ParsedMessage.vue"; import ParsedMessage from "../ParsedMessage.vue";
import LinkPreview from "../LinkPreview.vue";
import Username from "../Username.vue"; import Username from "../Username.vue";
export default { export default {
name: "MessageTypeAction", name: "MessageTypeAction",
components: { components: {
ParsedMessage, ParsedMessage,
LinkPreview,
Username, Username,
}, },
props: { props: {