@@ -89,13 +89,6 @@ const comments = computed(() => {
8989 .sort ((a , b ) => a .commentId === props .comment .commentId && a .createdTime - b .createdTime );
9090});
9191
92- const getCommentUser = (comment ) => {
93- return {
94- name: comment .creatorName ,
95- email: comment .creatorEmail ,
96- };
97- };
98-
9992const isInternalDropdownDisabled = computed (() => {
10093 if (props .comment .resolvedTime ) return true ;
10194 return getConfig .value .readOnly ;
@@ -260,10 +253,7 @@ const usersFiltered = computed(() => {
260253 if (props .comment .isInternal === true ) {
261254 return users .filter ((user ) => user .access ? .role === ' internal' );
262255 }
263- if (props .comment .isInternal === false ) {
264- return users .filter ((user ) => user .access ? .role === ' external' );
265- }
266-
256+
267257 return users;
268258});
269259
@@ -299,7 +289,6 @@ onMounted(() => {
299289 <!-- Comments and their threaded (sub) comments are rendered here -->
300290 < div v- for = " (comment, index) in comments" : key= " index" class = " conversation-item" >
301291 < CommentHeader
302- : user= " getCommentUser(comment)"
303292 : config= " getConfig"
304293 : timestamp= " getProcessedDate(comment.createdTime)"
305294 : comment= " comment"
@@ -332,7 +321,6 @@ onMounted(() => {
332321 < / div>
333322 < div v- else class = " comment-editing" >
334323 < CommentInput
335- : user= " superdocStore.user"
336324 : users= " usersFiltered"
337325 : config= " getConfig"
338326 : include- header= " false"
@@ -356,7 +344,6 @@ onMounted(() => {
356344 < div v- if = " showInputSection && !getConfig.readOnly" >
357345 < CommentInput
358346 ref= " commentInput"
359- : user= " superdocStore.user"
360347 : users= " usersFiltered"
361348 : config= " getConfig"
362349 : comment= " props.comment"
0 commit comments