Commit dbb1f6b9 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'ee-refactor-jobs-show-haml' into 'master'

Add dispatcher imports for job details bundle (EE)

See merge request gitlab-org/gitlab-ee!4565
parents e6d6be8b 9cb3b042
......@@ -3,7 +3,7 @@ import JobMediator from './job_details_mediator';
import jobHeader from './components/header.vue';
import detailsBlock from './components/sidebar_details_block.vue';
document.addEventListener('DOMContentLoaded', () => {
export default () => {
const dataset = document.getElementById('js-job-details-vue').dataset;
const mediator = new JobMediator({ endpoint: dataset.endpoint });
......@@ -55,4 +55,4 @@ document.addEventListener('DOMContentLoaded', () => {
});
},
});
});
};
import initJobDetails from '~/jobs/job_details_bundle';
document.addEventListener('DOMContentLoaded', initJobDetails);
......@@ -114,7 +114,3 @@
.js-build-options{ data: javascript_build_options }
#js-job-details-vue{ data: { endpoint: project_job_path(@project, @build, format: :json) } }
- content_for :page_specific_javascripts do
= webpack_bundle_tag('common_vue')
= webpack_bundle_tag('job_details')
......@@ -71,7 +71,6 @@ var config = {
issuable: './issuable/issuable_bundle.js',
issues: './issues/issues_bundle.js',
issue_show: './issue_show/index.js',
job_details: './jobs/job_details_bundle.js',
ldap_group_links: './groups/ldap_group_links.js',
locale: './locale/index.js',
main: './main.js',
......@@ -270,7 +269,6 @@ var config = {
'groups',
'issuable',
'issue_show',
'job_details',
'merge_conflicts',
'monitoring',
'notebook_viewer',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment