Refactored webpack bundle tag for deploy keys
This commit is contained in:
parent
9c498d39b0
commit
544558b23a
|
@ -1,7 +1,7 @@
|
|||
import Vue from 'vue';
|
||||
import deployKeysApp from './components/app.vue';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => new Vue({
|
||||
export default () => new Vue({
|
||||
el: document.getElementById('js-deploy-keys'),
|
||||
components: {
|
||||
deployKeysApp,
|
||||
|
@ -18,4 +18,4 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
|
|||
},
|
||||
});
|
||||
},
|
||||
}));
|
||||
});
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import initSettingsPanels from '~/settings_panels';
|
||||
import initDeployKeys from '~/deploy_keys';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initSettingsPanels);
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
initDeployKeys();
|
||||
initSettingsPanels();
|
||||
});
|
||||
|
|
|
@ -57,7 +57,6 @@ var config = {
|
|||
common_vue: './vue_shared/vue_resource_interceptor.js',
|
||||
cycle_analytics: './cycle_analytics/cycle_analytics_bundle.js',
|
||||
commit_pipelines: './commit/pipelines/pipelines_bundle.js',
|
||||
deploy_keys: './deploy_keys/index.js',
|
||||
diff_notes: './diff_notes/diff_notes_bundle.js',
|
||||
environments: './environments/environments_bundle.js',
|
||||
environments_folder: './environments/folder/environments_folder_bundle.js',
|
||||
|
|
Loading…
Reference in New Issue