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
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
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 @
c7e6eff4
...
@@ -11,8 +11,10 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -11,8 +11,10 @@ document.addEventListener('DOMContentLoaded', () => {
const
pipelineGraphApp
=
new
Vue
({
const
pipelineGraphApp
=
new
Vue
({
el
:
'
#js-pipeline-graph-vue
'
,
el
:
'
#js-pipeline-graph-vue
'
,
data
:
{
data
()
{
return
{
mediator
,
mediator
,
};
},
},
components
:
{
components
:
{
pipelineGraph
,
pipelineGraph
,
...
...
app/assets/javascripts/pipelines/pipeline_details_mediatior.js
View file @
c7e6eff4
...
@@ -6,8 +6,8 @@ import PipelineStore from './stores/pipeline_store';
...
@@ -6,8 +6,8 @@ import PipelineStore from './stores/pipeline_store';
import
PipelineService
from
'
./services/pipeline_service
'
;
import
PipelineService
from
'
./services/pipeline_service
'
;
export
default
class
pipelinesMediator
{
export
default
class
pipelinesMediator
{
constructor
(
options
)
{
constructor
(
options
=
{}
)
{
this
.
options
=
options
||
{}
;
this
.
options
=
options
;
this
.
store
=
new
PipelineStore
();
this
.
store
=
new
PipelineStore
();
this
.
service
=
new
PipelineService
(
options
.
endpoint
);
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