remove webpack bundle tag for monitoring:environments:metrics

This commit is contained in:
Simon Knox 2018-01-23 16:00:15 +00:00 committed by Phil Hughes
parent d3f42147a3
commit 0b47c94a72
4 changed files with 10 additions and 3 deletions

View file

@ -68,6 +68,11 @@ import SearchAutocomplete from './search_autocomplete';
.catch(fail);
shortcut_handler = true;
break;
case 'projects:environments:metrics':
import('./pages/projects/environments/metrics')
.then(callDefault)
.catch(fail);
break;
case 'projects:merge_requests:index':
import('./pages/projects/merge_requests/index')
.then(callDefault)

View file

@ -1,7 +1,7 @@
import Vue from 'vue';
import Dashboard from './components/dashboard.vue';
document.addEventListener('DOMContentLoaded', () => new Vue({
export default () => new Vue({
el: '#prometheus-graphs',
render: createElement => createElement(Dashboard),
}));
});

View file

@ -0,0 +1,3 @@
import monitoringBundle from '~/monitoring/monitoring_bundle';
export default monitoringBundle;

View file

@ -3,7 +3,6 @@
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'common_d3'
= webpack_bundle_tag 'monitoring'
.prometheus-container{ class: container_class }
.top-area