src_js/iconolab-bundle/src/components/editor/CommentList.vue
changeset 504 11a862e01b04
parent 423 729e51dd282e
child 539 08e2513dbc2f
equal deleted inserted replaced
503:a6290b2fae6b 504:11a862e01b04
    32                 return this.fetch.replace(':annotation_guid', this.annotation.annotation_guid);
    32                 return this.fetch.replace(':annotation_guid', this.annotation.annotation_guid);
    33             }
    33             }
    34         },
    34         },
    35         watch: {
    35         watch: {
    36             annotation: function(annotation) {
    36             annotation: function(annotation) {
    37                 if (annotation) {
    37                 if (annotation && annotation.annotation_guid) {
    38                     $.getJSON(this.commentsURL).then((comments) => this.comments = comments);
    38                     $.getJSON(this.commentsURL).then((comments) => this.comments = comments);
    39                 } else {
    39                 } else {
    40                     this.comments = [];
    40                     this.comments = [];
    41                 }
    41                 }
    42             }
    42             }