From 9f8000790426e6c013dcb828c997a7dd72f5e3e1 Mon Sep 17 00:00:00 2001 From: Fatih Acet Date: Fri, 12 May 2017 14:47:58 +0300 Subject: MRWidget: Fix specs and address WIP comments. --- .../components/states/mr_widget_nothing_to_merge.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'app/assets/javascripts/vue_merge_request_widget') diff --git a/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_nothing_to_merge.js b/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_nothing_to_merge.js index 1d9c30389e5..c314776d9bb 100644 --- a/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_nothing_to_merge.js +++ b/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_nothing_to_merge.js @@ -5,20 +5,17 @@ export default { props: { mr: { type: Object, - default: false, + required: true, }, }, data() { - return { - canCreateNewFile: true, - emptyStateSVG, - }; + return { emptyStateSVG }; }, template: `
- +
@@ -33,7 +30,7 @@ export default { Please push new commits or use a different branch.

-- cgit v1.2.1