BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c7e6eff4
Commit
c7e6eff4
authored
May 26, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use function to define data instead of an object
parent
cad686cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
pipeline_details_bundle.js
app/assets/javascripts/pipelines/pipeline_details_bundle.js
+3
-1
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 @
c7e6eff4
...
...
@@ -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 @
c7e6eff4
...
...
@@ -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