Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « groups « explore « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c6a9cf50d9aaa6093c8c9998fbd417eccebe5837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import EmptyState from '~/groups/components/empty_states/groups_explore_empty_state.vue';
import initGroupsList from '~/groups';
import Landing from '~/groups/landing';

function exploreGroups() {
  initGroupsList(EmptyState);
  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();
}

exploreGroups();