summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-02-27 13:01:34 +0000
committerPhil Hughes <me@iamphill.com>2018-02-27 13:01:34 +0000
commit54d0f1bd71cad10b223db2aa2c98756d8ff88e50 (patch)
tree51efe48a982e2a79569d1f4831111dba2f976ec4
parent64b217bc07266932387cea26d710df79e7a915c5 (diff)
parent27ca41ac3c9442312f440d78f70628d0ac6826ff (diff)
downloadgitlab-ce-54d0f1bd71cad10b223db2aa2c98756d8ff88e50.tar.gz
Merge branch 'refactor-commit-show' into 'master'
Remove diff notes webpack entry point See merge request gitlab-org/gitlab-ce!17382
-rw-r--r--app/assets/javascripts/pages/projects/commit/show/index.js2
-rw-r--r--app/views/projects/commit/show.html.haml1
-rw-r--r--config/webpack.config.js2
3 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/pages/projects/commit/show/index.js b/app/assets/javascripts/pages/projects/commit/show/index.js
index 460a54ab504..1aeed197385 100644
--- a/app/assets/javascripts/pages/projects/commit/show/index.js
+++ b/app/assets/javascripts/pages/projects/commit/show/index.js
@@ -5,6 +5,7 @@ import ShortcutsNavigation from '~/shortcuts_navigation';
import MiniPipelineGraph from '~/mini_pipeline_graph_dropdown';
import initNotes from '~/init_notes';
import initChangesDropdown from '~/init_changes_dropdown';
+import initDiffNotes from '~/diff_notes/diff_notes_bundle';
import { fetchCommitMergeRequests } from '~/commit_merge_requests';
document.addEventListener('DOMContentLoaded', () => {
@@ -19,4 +20,5 @@ document.addEventListener('DOMContentLoaded', () => {
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - stickyBarPaddingTop);
$('.commit-info.branches').load(document.querySelector('.js-commit-box').dataset.commitPath);
fetchCommitMergeRequests();
+ initDiffNotes();
});
diff --git a/app/views/projects/commit/show.html.haml b/app/views/projects/commit/show.html.haml
index 4058e61eb9a..ba86d943967 100644
--- a/app/views/projects/commit/show.html.haml
+++ b/app/views/projects/commit/show.html.haml
@@ -8,7 +8,6 @@
- page_description @commit.description
- content_for :page_specific_javascripts do
= webpack_bundle_tag('common_vue')
- = webpack_bundle_tag('diff_notes')
.container-fluid{ class: [limited_container_width, container_class] }
= render "commit_box"
diff --git a/config/webpack.config.js b/config/webpack.config.js
index fc000be609e..2cc89f325e5 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -48,7 +48,6 @@ var config = {
common: './commons/index.js',
common_vue: './vue_shared/vue_resource_interceptor.js',
cycle_analytics: './cycle_analytics/cycle_analytics_bundle.js',
- diff_notes: './diff_notes/diff_notes_bundle.js',
environments: './environments/environments_bundle.js',
filtered_search: './filtered_search/filtered_search_bundle.js',
help: './help/help.js',
@@ -235,7 +234,6 @@ var config = {
'boards',
'cycle_analytics',
'deploy_keys',
- 'diff_notes',
'environments',
'filtered_search',
'groups',