debian-mirror-gitlab/app/assets/javascripts/pages/explore/groups/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
549 B
JavaScript
Raw Normal View History

2022-03-02 08:16:31 +05:30
import initGroupsList from '~/groups';
import GroupsList from '~/groups/groups_list';
import Landing from '~/groups/landing';
2018-03-17 18:26:18 +05:30
2021-10-27 15:23:28 +05:30
function exploreGroups() {
2018-03-17 18:26:18 +05:30
new GroupsList(); // eslint-disable-line no-new
initGroupsList();
const landingElement = document.querySelector('.js-explore-groups-landing');
if (!landingElement) return;
const exploreGroupsLanding = new Landing(
landingElement,
landingElement.querySelector('.dismiss-button'),
'explore_groups_landing_dismissed',
);
exploreGroupsLanding.toggle();
2021-10-27 15:23:28 +05:30
}
exploreGroups();