src_js/iconolab-bundle/src/components/editor/CommentList.vue
changeset 396 0a4743126d74
parent 351 2d5557c01f95
child 410 a6db5e626850
--- a/src_js/iconolab-bundle/src/components/editor/CommentList.vue	Mon Feb 27 17:47:22 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/CommentList.vue	Mon Feb 27 17:50:14 2017 +0100
@@ -1,12 +1,14 @@
 <template>
-    <div v-show="annotation">
-        <label class="small text-muted">Commentaires</label>
+    <div v-show="annotation" class="wrapper">
         <div v-show="comments.length === 0" class="alert alert-info">Pas de commentaire pour le moment.</div>
         <comment
             v-for="comment in comments"
+            v-bind:id="comment.id"
+            v-bind:level="comment.level"
             v-bind:comment="comment.comment"
             v-bind:username="comment.user_name"
-            v-bind:date="comment.submit_date"></comment>
+            v-bind:date="comment.submit_date"
+            v-bind:allowThread="comment.allow_thread"></comment>
     </div>
 </template>
 
@@ -43,6 +45,10 @@
 </script>
 
 <style scoped>
+.wrapper {
+    max-height: 200px;
+    overflow-y: scroll;
+}
 .alert {
     padding: 10px;
     font-size: 12px;