debian-mirror-gitlab/app/assets/javascripts/pages/projects/environments/index/index.js
2021-12-11 22:18:48 +05:30

11 lines
296 B
JavaScript

import initEnvironments from '~/environments/';
import initNewEnvironments from '~/environments/new_index';
let el = document.getElementById('environments-list-view');
if (el) {
initEnvironments(el);
} else {
el = document.getElementById('environments-table');
initNewEnvironments(el);
}