Commit c84b2fd2 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds constructor method to ee store

parent f81e1acb
import CEMergeRequestStore from '../../stores/mr_widget_store';
export default class MergeRequestStore extends CEMergeRequestStore {
constructor(data) {
super(data);
this.initCodeclimate(data);
}
setData(data) {
this.initGeo(data);
this.initSquashBeforeMerge(data);
this.initRebase(data);
this.initApprovals(data);
this.initCodeclimate(data);
super.setData(data);
}
......
......@@ -2,7 +2,6 @@ import Timeago from 'timeago.js';
import { getStateKey } from '../dependencies';
export default class MergeRequestStore {
constructor(data) {
this.sha = data.diff_head_sha;
......@@ -136,5 +135,4 @@ export default class MergeRequestStore {
return timeagoInstance.format(event.updated_at);
}
}
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