Commit 1b929072 authored by Paul Slaughter's avatar Paul Slaughter

Extract extension method from mr_widget_options

**Why?**
- This fixes the CE/EE difference
- More endpoints will be added in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9168
parent 609e5f7d
......@@ -142,8 +142,8 @@ export default {
}
},
methods: {
createService(store) {
const endpoints = {
getServiceEndpoints(store) {
return {
mergePath: store.mergePath,
mergeCheckPath: store.mergeCheckPath,
cancelAutoMergePath: store.cancelAutoMergePath,
......@@ -154,7 +154,9 @@ export default {
mergeActionsContentPath: store.mergeActionsContentPath,
rebasePath: store.rebasePath,
};
return new MRWidgetService(endpoints);
},
createService(store) {
return new MRWidgetService(this.getServiceEndpoints(store));
},
checkStatus(cb, isRebased) {
return this.service
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment