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

has_new_issue_dropdown_mixin.js « list « issues « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 510edf9b78cab5ad382c9ba6914a8ebd80e302be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import searchProjectsQuery from './queries/search_projects.query.graphql';

export const hasNewIssueDropdown = () => ({
  inject: ['fullPath'],
  computed: {
    newIssueDropdownQueryVariables() {
      return {
        fullPath: this.fullPath,
      };
    },
  },
  methods: {
    extractProjects(data) {
      return data?.group?.projects?.nodes;
    },
  },
  searchProjectsQuery,
});