summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/notes/components/noteable_discussion.vue10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/assets/javascripts/notes/components/noteable_discussion.vue b/app/assets/javascripts/notes/components/noteable_discussion.vue
index 99ddb8cdf78..76c1aecc336 100644
--- a/app/assets/javascripts/notes/components/noteable_discussion.vue
+++ b/app/assets/javascripts/notes/components/noteable_discussion.vue
@@ -92,16 +92,10 @@
return this.unresolvedDiscussions.length > 0;
},
wrapperComponent() {
- if (this.discussion.diffDiscussion && this.discussion.diffFile) {
- return diffWithNote;
- }
- return 'div';
+ return (this.discussion.diffDiscussion && this.discussion.diffFile) ? diffWithNote : 'div';
},
wrapperClass() {
- if (this.isDiffDiscussion) {
- return '';
- }
- return 'panel panel-default';
+ return this.isDiffDiscussion ? '' : 'panel panel-default';
},
},
methods: {