Commit 6e5c68f3 authored by Angelo Gulina's avatar Angelo Gulina Committed by André Luís

Update charts with new waitForCSSLoaded implementation

parent 32d88db6
......@@ -5,7 +5,8 @@ import { __ } from '~/locale';
import CodeCoverage from '../components/code_coverage.vue';
import SeriesDataMixin from './series_data_mixin';
waitForCSSLoaded(() => {
document.addEventListener('DOMContentLoaded', () => {
waitForCSSLoaded(() => {
const languagesContainer = document.getElementById('js-languages-chart');
const codeCoverageContainer = document.getElementById('js-code-coverage-chart');
const monthContainer = document.getElementById('js-month-chart');
......@@ -150,4 +151,5 @@ waitForCSSLoaded(() => {
});
},
});
});
});
import {
waitForCSSLoaded,
} from '../../../app/assets/javascripts/helpers/startup_css_helper';
import { waitForCSSLoaded } from '../../../app/assets/javascripts/helpers/startup_css_helper';
describe('waitForCSSLoaded', () => {
let mockedCallback;
......
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