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
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 () => {
JobApp
,
},
render
(
createElement
)
{
const
{
deploymentHelpUrl
,
runnerHelpUrl
,
runnerSettingsUrl
,
variablesSettingsUrl
,
endpoint
,
pagePath
,
logState
,
buildStatus
,
projectPath
,
}
=
element
.
dataset
;
return
createElement
(
'
job-app
'
,
{
props
:
{
deploymentHelpUrl
:
element
.
dataset
.
deploymentHelpUrl
,
runnerHelpUrl
:
element
.
dataset
.
runnerHelpUrl
,
runnerSettingsUrl
:
element
.
dataset
.
runnerSettingsUrl
,
variablesSettingsUrl
:
element
.
dataset
.
variablesSettingsUrl
,
endpoint
:
element
.
dataset
.
endpoint
,
pagePath
:
element
.
dataset
.
buildOptionsPagePath
,
logState
:
element
.
dataset
.
buildOptionsLogState
,
buildStatus
:
element
.
dataset
.
buildOptionsBuildStatus
,
projectPath
:
element
.
dataset
.
projectPath
,
deploymentHelpUrl
,
runnerHelpUrl
,
runnerSettingsUrl
,
variablesSettingsUrl
,
endpoint
,
pagePath
,
logState
,
buildStatus
,
projectPath
,
},
});
},
...
...
app/views/projects/jobs/show.html.haml
View file @
9eb4004f
...
...
@@ -12,4 +12,5 @@
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'
),
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
}
}
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