src_js/iconolab-bundle/src/components/editor/Annotation.vue
author Alexandre Segura <mex.zktk@gmail.com>
Mon, 20 Feb 2017 19:52:22 +0100
changeset 328 c23659daa42d
parent 320 81945eedc63f
permissions -rw-r--r--
Show alert when there are no comments.

<script>

    export default {
        props: [
            'title',
            'description',
            'fragment',
            'tags'
        ],
        mounted() {

            var tags = [];
            if (this.tags) {
                tags = JSON.parse(this.tags);
            }

            this.$parent.setAnnotation({
                title: this.title,
                description: this.description,
                fragment: this.fragment,
                tags: tags
            });
        },
        render: function(createElement) {}
    }

</script>