Commit 13a73325 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch 'remove-DOMContentLoaded-subscriptions-Pages' into 'master'

Remove DOMContentLoaded Eventlisteners

See merge request gitlab-org/gitlab!47781
parents 49092058 63338f0f
import initCycleAnalyticsApp from 'ee/analytics/cycle_analytics/index';
document.addEventListener('DOMContentLoaded', initCycleAnalyticsApp);
initCycleAnalyticsApp();
......@@ -2,10 +2,8 @@ import Vue from 'vue';
import EnvironmentDashboardComponent from 'ee/environments_dashboard/components/dashboard/dashboard.vue';
import createStore from 'ee/vue_shared/dashboards/store';
document.addEventListener(
'DOMContentLoaded',
() =>
new Vue({
// eslint-disable-next-line no-new
new Vue({
el: '#js-environments',
store: createStore(),
components: {
......@@ -16,5 +14,4 @@ document.addEventListener(
props: this.$el.dataset,
});
},
}),
);
});
......@@ -2,10 +2,8 @@ import Vue from 'vue';
import createStore from 'ee/vue_shared/dashboards/store';
import DashboardComponent from 'ee/operations/components/dashboard/dashboard.vue';
document.addEventListener(
'DOMContentLoaded',
() =>
new Vue({
// eslint-disable-next-line no-new
new Vue({
el: '#js-operations',
store: createStore(),
components: {
......@@ -21,5 +19,4 @@ document.addEventListener(
},
});
},
}),
);
});
import '~/pages/search/show/index';
import UserCallout from '~/user_callout';
document.addEventListener('DOMContentLoaded', () => new UserCallout());
// eslint-disable-next-line no-new
new UserCallout();
......@@ -5,9 +5,7 @@ import GroupPathValidator from '~/pages/groups/new/group_path_validator';
import BindInOut from '~/behaviors/bind_in_out';
import Group from '~/group';
document.addEventListener('DOMContentLoaded', () => {
mountProgressBar();
new GroupPathValidator();
BindInOut.initAll();
new Group();
});
mountProgressBar();
new GroupPathValidator();
BindInOut.initAll();
new Group();
import mountSubscriptionsApplication from 'ee/subscriptions/new';
document.addEventListener('DOMContentLoaded', () => mountSubscriptionsApplication());
mountSubscriptionsApplication();
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