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
60e99239
Commit
60e99239
authored
May 30, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use function to define data instead of an object
parent
806dbf10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
app/assets/javascripts/pipelines/pipeline_details_bundle.js
app/assets/javascripts/pipelines/pipeline_details_bundle.js
+4
-2
app/assets/javascripts/pipelines/pipeline_details_mediatior.js
...ssets/javascripts/pipelines/pipeline_details_mediatior.js
+2
-2
No files found.
app/assets/javascripts/pipelines/pipeline_details_bundle.js
View file @
60e99239
...
...
@@ -11,8 +11,10 @@ document.addEventListener('DOMContentLoaded', () => {
const
pipelineGraphApp
=
new
Vue
({
el
:
'
#js-pipeline-graph-vue
'
,
data
:
{
data
()
{
return
{
mediator
,
};
},
components
:
{
pipelineGraph
,
...
...
app/assets/javascripts/pipelines/pipeline_details_mediatior.js
View file @
60e99239
...
...
@@ -6,8 +6,8 @@ import PipelineStore from './stores/pipeline_store';
import
PipelineService
from
'
./services/pipeline_service
'
;
export
default
class
pipelinesMediator
{
constructor
(
options
)
{
this
.
options
=
options
||
{}
;
constructor
(
options
=
{}
)
{
this
.
options
=
options
;
this
.
store
=
new
PipelineStore
();
this
.
service
=
new
PipelineService
(
options
.
endpoint
);
...
...
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