Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c84b2fd2
Commit
c84b2fd2
authored
May 29, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds constructor method to ee store
parent
f81e1acb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/vue_merge_request_widget/ee/stores/mr_widget_store.js
...pts/vue_merge_request_widget/ee/stores/mr_widget_store.js
+5
-1
app/assets/javascripts/vue_merge_request_widget/stores/mr_widget_store.js
...cripts/vue_merge_request_widget/stores/mr_widget_store.js
+0
-2
No files found.
app/assets/javascripts/vue_merge_request_widget/ee/stores/mr_widget_store.js
View file @
c84b2fd2
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
);
}
...
...
app/assets/javascripts/vue_merge_request_widget/stores/mr_widget_store.js
View file @
c84b2fd2
...
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment