Commit defc395e authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason Committed by Denys Mishunov

Revert "remove-DOMContentLoaded-clusters-Pages"

This reverts merge request !47799
parent c3f7a9ee
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
new ClustersBundle(); // eslint-disable-line no-new document.addEventListener('DOMContentLoaded', () => {
new ClustersBundle(); // eslint-disable-line no-new
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
new ClustersBundle(); // eslint-disable-line no-new document.addEventListener('DOMContentLoaded', () => {
new ClustersBundle(); // eslint-disable-line no-new
});
import initCreateCluster from '~/create_cluster/init_create_cluster'; import initCreateCluster from '~/create_cluster/init_create_cluster';
import initIntegrationForm from '~/clusters/forms/show/index'; import initIntegrationForm from '~/clusters/forms/show/index';
initCreateCluster(document, gon); document.addEventListener('DOMContentLoaded', () => {
initIntegrationForm(); initCreateCluster(document, gon);
initIntegrationForm();
});
import PersistentUserCallout from '~/persistent_user_callout'; import PersistentUserCallout from '~/persistent_user_callout';
import initClustersListApp from '~/clusters_list'; import initClustersListApp from '~/clusters_list';
const callout = document.querySelector('.gcp-signup-offer'); document.addEventListener('DOMContentLoaded', () => {
PersistentUserCallout.factory(callout); const callout = document.querySelector('.gcp-signup-offer');
initClustersListApp(); PersistentUserCallout.factory(callout);
initClustersListApp();
});
import initNewCluster from '~/clusters/new_cluster'; import initNewCluster from '~/clusters/new_cluster';
initNewCluster(); document.addEventListener('DOMContentLoaded', () => {
initNewCluster();
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
import initClusterHealth from '~/pages/projects/clusters/show/cluster_health'; import initClusterHealth from '~/pages/projects/clusters/show/cluster_health';
new ClustersBundle(); // eslint-disable-line no-new document.addEventListener('DOMContentLoaded', () => {
initClusterHealth(); new ClustersBundle(); // eslint-disable-line no-new
initClusterHealth();
});
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