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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
9eb4004f
Commit
9eb4004f
authored
Aug 05, 2019
by
Ammar Alakkad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor passing props to jobs/index.js
parent
715f5de4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
app/assets/javascripts/jobs/index.js
app/assets/javascripts/jobs/index.js
+21
-9
app/views/projects/jobs/show.html.haml
app/views/projects/jobs/show.html.haml
+1
-0
No files found.
app/assets/javascripts/jobs/index.js
View file @
9eb4004f
...
@@ -10,17 +10,29 @@ export default () => {
...
@@ -10,17 +10,29 @@ export default () => {
JobApp
,
JobApp
,
},
},
render
(
createElement
)
{
render
(
createElement
)
{
const
{
deploymentHelpUrl
,
runnerHelpUrl
,
runnerSettingsUrl
,
variablesSettingsUrl
,
endpoint
,
pagePath
,
logState
,
buildStatus
,
projectPath
,
}
=
element
.
dataset
;
return
createElement
(
'
job-app
'
,
{
return
createElement
(
'
job-app
'
,
{
props
:
{
props
:
{
deploymentHelpUrl
:
element
.
dataset
.
deploymentHelpUrl
,
deploymentHelpUrl
,
runnerHelpUrl
:
element
.
dataset
.
runnerHelpUrl
,
runnerHelpUrl
,
runnerSettingsUrl
:
element
.
dataset
.
runnerSettingsUrl
,
runnerSettingsUrl
,
variablesSettingsUrl
:
element
.
dataset
.
variablesSettingsUrl
,
variablesSettingsUrl
,
endpoint
:
element
.
dataset
.
endpoint
,
endpoint
,
pagePath
:
element
.
dataset
.
buildOptionsPagePath
,
pagePath
,
logState
:
element
.
dataset
.
buildOptionsLogState
,
logState
,
buildStatus
:
element
.
dataset
.
buildOptionsBuildStatus
,
buildStatus
,
projectPath
:
element
.
dataset
.
projectPath
,
projectPath
,
},
},
});
});
},
},
...
...
app/views/projects/jobs/show.html.haml
View file @
9eb4004f
...
@@ -12,4 +12,5 @@
...
@@ -12,4 +12,5 @@
runner_help_url:
help_page_path
(
'ci/runners/README.html'
,
anchor:
'setting-maximum-job-timeout-for-a-runner'
),
runner_help_url:
help_page_path
(
'ci/runners/README.html'
,
anchor:
'setting-maximum-job-timeout-for-a-runner'
),
runner_settings_url:
project_runners_path
(
@build
.
project
,
anchor:
'js-runners-settings'
),
runner_settings_url:
project_runners_path
(
@build
.
project
,
anchor:
'js-runners-settings'
),
variables_settings_url:
project_variables_path
(
@build
.
project
,
anchor:
'js-cicd-variables-settings'
),
variables_settings_url:
project_variables_path
(
@build
.
project
,
anchor:
'js-cicd-variables-settings'
),
page_path:
project_job_path
(
@project
,
@build
),
build_status:
@build
.
status
,
build_stage:
@build
.
stage
,
log_state:
''
,
build_options:
javascript_build_options
}
}
build_options:
javascript_build_options
}
}
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