summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.js
blob: bf8628d18a69997956a74fdb570a977316a940cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
The squash-before-merge button is EE only, but it's located right in the middle
of the readyToMerge state component template.

If we didn't declare this component in CE, we'd need to maintain a separate copy
of the readyToMergeState template in EE, which is pretty big and likely to change.

Instead, in CE, we declare the component, but it's hidden and is configured to do nothing.
In EE, the configuration extends this object to add a functioning squash-before-merge
button.
*/

export default {
  template: '',
};