diff options
author | Ammar Alakkad <aalakkad@gitlab.com> | 2019-08-05 15:12:47 +0300 |
---|---|---|
committer | Ammar Alakkad <aalakkad@gitlab.com> | 2019-08-05 15:12:47 +0300 |
commit | 9eb4004f74f6451f2e4272a22075e292f0c098d7 (patch) | |
tree | f7d87206b270b78b6714fa331b04f41ed9730049 /app/assets/javascripts/jobs/index.js | |
parent | 715f5de4aa0f1c8d32eecfd54b6610bf8eb67c76 (diff) |
Refactor passing props to jobs/index.js
Diffstat (limited to 'app/assets/javascripts/jobs/index.js')
-rw-r--r-- | app/assets/javascripts/jobs/index.js | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/app/assets/javascripts/jobs/index.js b/app/assets/javascripts/jobs/index.js index 8c1758b6322..add7f9b710a 100644 --- a/app/assets/javascripts/jobs/index.js +++ b/app/assets/javascripts/jobs/index.js @@ -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, }, }); }, |