2019-09-30 21:07:59 +05:30
|
|
|
<script>
|
|
|
|
/**
|
|
|
|
* Wrapper for discussion notes replies section.
|
|
|
|
*
|
|
|
|
* This is a functional component using the render method because in some cases
|
|
|
|
* the wrapper is not needed and we want to simply render along the children.
|
|
|
|
*/
|
|
|
|
export default {
|
|
|
|
functional: true,
|
|
|
|
props: {
|
|
|
|
isDiffDiscussion: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
render(h, { props, children }) {
|
|
|
|
if (props.isDiffDiscussion) {
|
2021-03-11 19:13:27 +05:30
|
|
|
return h(
|
|
|
|
'li',
|
|
|
|
{
|
|
|
|
class:
|
2021-04-17 20:07:23 +05:30
|
|
|
'discussion-collapsible gl-border-solid gl-border-gray-100 gl-border-1 gl-rounded-base clearfix',
|
2021-03-11 19:13:27 +05:30
|
|
|
},
|
|
|
|
[h('ul', { class: 'notes' }, children)],
|
|
|
|
);
|
2019-09-30 21:07:59 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
return children;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|